Changeset 9507 in orxonox.OLD for branches/proxy/src/world_entities/playable.cc
- Timestamp:
- Jul 27, 2006, 1:59:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/world_entities/playable.cc
r9500 r9507 68 68 69 69 70 this->teamChangeHandler = registerVarId( new SynchronizeableInt( &this->teamId, &this->teamId, "team-id" ) ); 70 71 registerVar( new SynchronizeableInt( &score, &score, "score" ) ); 71 72 registerVar( new SynchronizeableBool( &bFire, &bFire, "bFire", PERMISSION_OWNER)); … … 524 525 "FirstPerson" 525 526 }; 527 528 529 /** 530 * handler for changes on registred vars 531 * @param id id's which changed 532 */ 533 void Playable::varChangeHandler( std::list< int > & id ) 534 { 535 if ( std::find( id.begin(), id.end(), this->teamChangeHandler) != id.end() ) 536 { 537 this->setTeam(this->teamId); 538 } 539 540 WorldEntity::varChangeHandler(id); 541 }
Note: See TracChangeset
for help on using the changeset viewer.