Changeset 9513 in orxonox.OLD for branches/proxy/src/world_entities
- Timestamp:
- Jul 27, 2006, 5:38:53 PM (18 years ago)
- Location:
- branches/proxy/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/world_entities/npcs/ground_turret.cc
r9406 r9513 80 80 81 81 /** 82 * loads a GroundTurret from a XML-element82 * @brief loads a GroundTurret from a XML-element 83 83 * @param root the XML-element to load from 84 84 * @todo make the class Loadable -
branches/proxy/src/world_entities/weapons/aim.h
r7221 r9513 37 37 38 38 inline void selectTarget(PNode* target) { this->setParent(target); }; 39 inline PNode* getTarget(PNode* target) { return this->getParent(); };39 inline PNode* getTarget(PNode* target) const { return this->getParent(); }; 40 40 41 41 void searchTarget(); 42 42 43 void setRange(float range) {this->range = range;};44 void setAngle(float angle) {this->angle = angle;};45 void setGroup(OM_LIST group) {this->group = group;};43 void setRange(float range) {this->range = range;}; 44 void setAngle(float angle) {this->angle = angle;}; 45 void setGroup(OM_LIST group) {this->group = group;}; 46 46 47 47 void setSize(float size); -
branches/proxy/src/world_entities/world_entity.cc
r9494 r9513 141 141 .describe("The Health the WorldEntity has at this moment") 142 142 .defaultValues(1.0f); 143 144 LoadParam(root, "list", this, WorldEntity, toListS); 143 145 } 144 146 … … 478 480 } 479 481 482 void WorldEntity::toListS(const std::string& listName) 483 { 484 OM_LIST id = ObjectManager::StringToOMList(listName); 485 if (id != OM_NULL) 486 this->toList(id); 487 else 488 PRINTF(2)("List %s not found\n", listName.c_str()); 489 } 490 491 480 492 void WorldEntity::toReflectionList() 481 493 { … … 822 834 PRINT(0)("WorldEntity %s::%s (DEBUG)\n", this->getClassCName(), this->getCName()); 823 835 this->debugNode(); 824 PRINT(0)("List: %s ; ModelCount %d - ", ObjectManager::OMListToString(this->objectListNumber) 836 PRINT(0)("List: %s ; ModelCount %d - ", ObjectManager::OMListToString(this->objectListNumber).c_str(), this->models.size()); 825 837 for (unsigned int i = 0; i < this->models.size(); i++) 826 838 { -
branches/proxy/src/world_entities/world_entity.h
r9298 r9513 115 115 /* --- Object Manager Block --- */ 116 116 void toList(OM_LIST list); 117 void toListS(const std::string& listName); 117 118 118 119 void toReflectionList();
Note: See TracChangeset
for help on using the changeset viewer.