| 180 | } |
| 181 | |
| 182 | std::string SpawnArgs::getKeyValue(const std::string& key) const |
| 183 | { |
| 184 | // Lookup the key in the map |
| 185 | KeyValues::const_iterator i = find(key); |
| 186 | |
| 187 | // If key is found, return it, otherwise lookup the default value on |
| 188 | // the entity class |
| 189 | if (i != _keyValues.end()) |
| 190 | { |
| 191 | return i->second->get(); |
| 192 | } |
| 193 | else |
| 194 | { |
| 195 | return _eclass->getAttributeValue(key); |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | bool SpawnArgs::isInherited(const std::string& key) const |
| 200 | { |
no test coverage detected