Changeset 9059 in orxonox.OLD for trunk/src/world_entities/bsp_entity.cc
- Timestamp:
- Jul 3, 2006, 6:30:42 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/bsp_entity.cc
r9003 r9059 53 53 54 54 this->bspManager = NULL; 55 /** 56 * @todo: Write CL_BSP_ENTITY INTO THE src/defs/class_id.h (your own definition) 57 */ 55 56 this->name_handle = registerVarId( new SynchronizeableString( &this->name, &this->name_write, "name" ) ); 57 58 this->setSynchronized( true ); 58 59 } 59 60 … … 62 63 { 63 64 PRINTF(0)("+++++++++++ LOADING NAME %s\n", name.c_str()); 65 66 this->name = name; 64 67 65 68 // Check wether file exists.... … … 130 133 void BspEntity::collidesWith (WorldEntity* entity, const Vector& location) 131 134 {} 135 136 void BspEntity::varChangeHandler( std::list< int > & id ) 137 { 138 if ( std::find( id.begin(), id.end(), this->name_handle ) != id.end() ) 139 { 140 this->setName( this->name_write ); 141 } 142 }
Note: See TracChangeset
for help on using the changeset viewer.