Changeset 8218 in orxonox.OLD for branches/bsp_model/src/world_entities/bsp_entity.cc
- Timestamp:
- Jun 7, 2006, 10:07:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/world_entities/bsp_entity.cc
r8195 r8218 17 17 #include "util/loading/resource_manager.h" 18 18 19 CREATE_FACTORY(B SPEntity, CL_BSP_ENTITY);19 CREATE_FACTORY(BspEntity, CL_BSP_ENTITY); 20 20 21 21 22 22 /** 23 * constructs and loads a B SPEntity from a XML-element23 * constructs and loads a BspEntity from a XML-element 24 24 * @param root the XML-element to load from 25 25 */ 26 B SPEntity::BSPEntity(const TiXmlElement* root)26 BspEntity::BspEntity(const TiXmlElement* root) 27 27 { 28 28 this->init(); … … 35 35 * standard deconstructor 36 36 */ 37 B SPEntity::~BSPEntity ()37 BspEntity::~BspEntity () 38 38 { 39 39 40 40 } 41 41 42 void B SPEntity::setName(const std::string& name)42 void BspEntity::setName(const std::string& name) 43 43 { 44 44 printf("+++++++++++ LOADING NAME %s\n", name.c_str()); … … 50 50 51 51 /** 52 * initializes the B SPEntity52 * initializes the BspEntity 53 53 * @todo change this to what you wish 54 54 */ 55 void B SPEntity::init()55 void BspEntity::init() 56 56 { 57 57 this->bspManager = new BspManager(); 58 this->setClassID(CL_BSP_ENTITY, "B SPEntity");58 this->setClassID(CL_BSP_ENTITY, "BspEntity"); 59 59 60 60 this->toList(OM_ENVIRON); … … 68 68 69 69 /** 70 * loads a B SPEntity from a XML-element70 * loads a BspEntity from a XML-element 71 71 * @param root the XML-element to load from 72 72 * @todo make the class Loadable 73 73 */ 74 void B SPEntity::loadParams(const TiXmlElement* root)74 void BspEntity::loadParams(const TiXmlElement* root) 75 75 { 76 76 // all the clases this Entity is directly derived from must be called in this way, to load all settings. 77 77 // WorldEntity::loadParam(root); 78 78 79 LoadParam(root, "Name", this, B SPEntity, setName)79 LoadParam(root, "Name", this, BspEntity, setName) 80 80 .describe("Sets the of the BSP file."); 81 81 … … 91 91 92 92 /** 93 * advances the B SPEntity about time seconds93 * advances the BspEntity about time seconds 94 94 * @param time the Time to step 95 95 */ 96 void B SPEntity::tick(float time)96 void BspEntity::tick(float time) 97 97 { 98 98 this->bspManager->tick(time); … … 103 103 * draws this worldEntity 104 104 */ 105 void B SPEntity::draw () const105 void BspEntity::draw () const 106 106 { 107 107 this->bspManager->draw(); … … 113 113 * 114 114 */ 115 void B SPEntity::collidesWith (WorldEntity* entity, const Vector& location)115 void BspEntity::collidesWith (WorldEntity* entity, const Vector& location) 116 116 { 117 117
Note: See TracChangeset
for help on using the changeset viewer.