Changeset 8220 in orxonox.OLD for branches/bsp_model/src/world_entities/bsp_entity.cc
- Timestamp:
- Jun 7, 2006, 11:44:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/world_entities/bsp_entity.cc
r8219 r8220 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Claudio Botta 13 13 co-programmer: ... 14 14 */ … … 27 27 { 28 28 this->init(); 29 29 30 if (root != NULL) 30 31 this->loadParams(root); … … 37 38 BspEntity::~BspEntity () 38 39 { 39 40 if( this->bspManager) 41 delete this->bspManager; 40 42 } 41 42 void BspEntity::setName(const std::string& name)43 {44 PRINTF(0)("+++++++++++ LOADING NAME %s\n", name.c_str());45 46 this->bspManager->load(name.c_str(), 0.1f);47 }48 49 43 50 44 … … 55 49 void BspEntity::init() 56 50 { 57 this->bspManager = new BspManager(this);58 51 this->setClassID(CL_BSP_ENTITY, "BspEntity"); 59 52 53 this->bspManager = new BspManager(this); 60 54 this->toList(OM_ENVIRON); 61 55 … … 63 57 * @todo: Write CL_BSP_ENTITY INTO THE src/defs/class_id.h (your own definition) 64 58 */ 59 } 65 60 61 62 void BspEntity::setName(const std::string& name) 63 { 64 PRINTF(0)("+++++++++++ LOADING NAME %s\n", name.c_str()); 65 66 this->bspManager->load(name.c_str(), 0.1f); 66 67 } 67 68
Note: See TracChangeset
for help on using the changeset viewer.