Changeset 7984 in orxonox.OLD for branches/network/src/lib/network/player_stats.cc
- Timestamp:
- May 30, 2006, 5:36:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/player_stats.cc
r7974 r7984 18 18 #include "class_list.h" 19 19 #include "src/lib/util/loading/factory.h" 20 21 #include "player.h" 22 #include "state.h" 20 23 21 24 … … 45 48 46 49 this->userId = 0; 47 this-> groupId = 0;50 this->teamId = 0; 48 51 this->score = 0; 49 52 this->playableClassId = 0; … … 51 54 52 55 userId_handle = registerVarId( new SynchronizeableInt( &userId, &userId, "userId" ) ); 53 groupId_handle = registerVarId( new SynchronizeableInt( & groupId, &groupId, "groupId" ) );56 groupId_handle = registerVarId( new SynchronizeableInt( &teamId, &teamId, "teamId" ) ); 54 57 score_handle = registerVarId( new SynchronizeableInt( &score, &score, "score" ) ); 55 58 playableClassId_handle = registerVarId( new SynchronizeableInt( &playableClassId, &playableClassId, "playableClassId") ); … … 77 80 { 78 81 this->setPlayableUniqueId( this->playableUniqueId ); 82 83 if ( userId == getHostID() ) 84 State::getPlayer()->setPlayable( getPlayable() ); 79 85 } 80 86 }
Note: See TracChangeset
for help on using the changeset viewer.