- Timestamp:
- Jun 2, 2005, 5:23:06 AM (20 years ago)
- Location:
- orxonox/trunk/src/proto
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/proto/proto_world_entity.cc
r3762 r4483 28 28 ProtoWorldEntity::ProtoWorldEntity () 29 29 { 30 this-> model = (Model*)ResourceManager::getInstance()->load("cube", PRIM, RP_LEVEL);30 this->init(); 31 31 } 32 33 /** 34 \brief constructs and loads a ProtoWorldEntity from a XML-element 35 \param root the XML-element to load from 36 */ 37 ProtoWorldEntity::ProtoWorldEntity(const TiXmlElement* root) 38 { 39 this->init(); 40 this->loadParams(root); 41 } 42 32 43 33 44 /** … … 38 49 39 50 } 51 52 /** 53 \brief initializes the ProtoWorldEntity 54 */ 55 void ProtoWorldEntity::init(void) 56 { 57 ... 58 } 59 60 /** 61 \brief loads a ProtoWorldEntity from a XML-element 62 \param root the XML-element to load from 63 */ 64 void ProtoWorldEntity::loadParams(const TiXmlElement* root) 65 { 66 static_cast<WorldEntity*>(this)->loadParam(root); 67 68 ... 69 } 70 40 71 41 72 /** … … 49 80 50 81 /** 51 \b iref draws this worldEntity82 \brief draws this worldEntity 52 83 */ 53 84 void ProtoWorldEntity::draw () -
orxonox/trunk/src/proto/proto_world_entity.h
r3762 r4483 1 1 /*! 2 \file proto_world_entity 2 \file proto_world_entity.h 3 3 4 description 4 5 */ 5 6 … … 15 16 public: 16 17 ProtoWorldEntity(); 18 ProtoWorldEntity(const TiXmlElement* root); 17 19 virtual ~ProtoWorldEntity(); 20 21 void loadParams(const TiXmlElement* root); 18 22 void init(); 19 23
Note: See TracChangeset
for help on using the changeset viewer.