MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / ObjectiveEntity

Method ObjectiveEntity

plugins/dm.objectives/ObjectiveEntity.cpp:31–46  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

29
30// Constructor
31ObjectiveEntity::ObjectiveEntity(const scene::INodePtr& node) :
32 _entityNode(node)
33{
34 Entity* entity = Node_getEntity(node);
35 assert(entity != NULL);
36
37 // Use an ObjectiveKeyExtractor to populate the ObjectiveMap from the keys
38 // on the entity
39 ObjectiveKeyExtractor extractor(_objectives);
40 entity->forEachKeyValue(extractor);
41
42 // Parse the logic strings from the entity
43 readMissionLogic(*entity);
44
45 readObjectiveConditions(*entity);
46}
47
48void ObjectiveEntity::readObjectiveConditions(Entity& ent)
49{

Callers

nothing calls this directly

Calls 2

Node_getEntityFunction · 0.85
forEachKeyValueMethod · 0.45

Tested by

no test coverage detected