| 512 | } |
| 513 | |
| 514 | void ObjectiveEntity::clearEntity(Entity* entity) { |
| 515 | // Get all keyvalues matching the "obj" prefix. |
| 516 | Entity::KeyValuePairs keyValues = entity->getKeyValuePairs("obj"); |
| 517 | |
| 518 | for (Entity::KeyValuePairs::const_iterator i = keyValues.begin(); |
| 519 | i != keyValues.end(); ++i) |
| 520 | { |
| 521 | // Set the spawnarg to empty, which is equivalent to a removal |
| 522 | entity->setKeyValue(i->first, ""); |
| 523 | } |
| 524 | } |
| 525 | |
| 526 | // Write out Objectives to entity keyvals |
| 527 | void ObjectiveEntity::writeToEntity() |
nothing calls this directly
no test coverage detected