Changeset 10666 in orxonox.OLD
- Timestamp:
- May 31, 2007, 4:13:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/adm/src/world_entities/npcs/adm_turret.cc
r10664 r10666 36 36 37 37 /** 38 * 38 * destructs the turret, deletes allocated memory 39 39 */ 40 40 AdmTurret::~AdmTurret () … … 43 43 } 44 44 45 /** 46 * Constructor with XML Element 47 */ 45 48 AdmTurret::AdmTurret (const TiXmlElement* root) 46 49 { … … 78 81 void AdmTurret::loadParams(const TiXmlElement* root) 79 82 { 80 WorldEntity::loadParams(root); 83 if (root != NULL) 84 { 85 WorldEntity::loadParams(root); 81 86 82 LoadParam(root, "target", this, AdmTurret, setTarget) 83 .describe("the filename of the World Entity, that is to be shot at") 84 .defaultValues(""); 87 LoadParam(root, "target", this, AdmTurret, setTarget) 88 .describe("the filename of the World Entity, that is to be shot at") 89 .defaultValues(""); 90 } 85 91 } 86 92
Note: See TracChangeset
for help on using the changeset viewer.