Changeset 4483 in orxonox.OLD for orxonox/trunk/src/proto/proto_world_entity.cc
- Timestamp:
- Jun 2, 2005, 5:23:06 AM (19 years ago)
- File:
-
- 1 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 ()
Note: See TracChangeset
for help on using the changeset viewer.