Constructor
| 29 | |
| 30 | // Constructor |
| 31 | ObjectiveEntity::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 | |
| 48 | void ObjectiveEntity::readObjectiveConditions(Entity& ent) |
| 49 | { |
nothing calls this directly
no test coverage detected