Changeset 9053 in orxonox.OLD for branches/multi_player_map/src
- Timestamp:
- Jul 3, 2006, 5:32:50 PM (18 years ago)
- Location:
- branches/multi_player_map/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/multi_player_map/src/world_entities/bsp_entity.cc
r9003 r9053 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 } -
branches/multi_player_map/src/world_entities/bsp_entity.h
r8490 r9053 28 28 29 29 void init(); 30 31 virtual void varChangeHandler( std::list<int> & id ); 30 32 31 33 virtual void draw() const; … … 38 40 private: 39 41 BspManager* bspManager; 42 43 std::string name; //!< store name 44 std::string name_write; //!< temp variable to store name 45 int name_handle; //!< handle for name 40 46 41 47 };
Note: See TracChangeset
for help on using the changeset viewer.