Changeset 9504 in orxonox.OLD for branches/proxy/src/lib/network/player_stats.h
- Timestamp:
- Jul 27, 2006, 12:54:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/player_stats.h
r9110 r9504 30 30 31 31 //! A class for storing player information 32 class PlayerStats : public Synchronizeable 32 class PlayerStats : public Synchronizeable 33 33 { 34 34 … … 37 37 PlayerStats( int userId ); 38 38 virtual ~PlayerStats(); 39 39 40 40 virtual void varChangeHandler( std::list<int> & id ); 41 41 42 42 static PlayerStats * getStats( int userId ); 43 43 44 44 inline int getUserId(){ return userId; } 45 45 46 46 inline int getTeamId(){ return teamId; } 47 47 inline void setTeamId( int teamId ){ this->teamId = teamId; } 48 48 49 void setPreferedTeamIdHandler( int newTeamId); 49 50 inline int getPreferedTeamId(){ return preferedTeamId; } 50 inline void setPreferedTeamId( int preferedTeamId ) { this->preferedTeamId = preferedTeamId; }51 51 inline void setPreferedTeamId( int preferedTeamId ) { this->preferedTeamId = preferedTeamId; } 52 52 53 inline int getScore(){ return score; } 53 54 inline void setScore( int score ){ this->score = score; } 54 55 55 56 inline int getPlayableClassId(){ return playableClassId; } 56 57 void setPlayableClassId( int classId ){ this->playableClassId = classId; }; 57 58 58 59 inline int getPlayableUniqueId(){ return playableUniqueId; } 59 60 void setPlayableUniqueId( int uniqueId ); 60 61 61 62 inline std::string getModelFileName(){ return modelFileName; } 62 63 inline void setModelFileName( std::string filename ){ modelFileName = filename; } 63 64 64 65 Playable * getPlayable(); 65 66 66 67 inline std::string getNickName(){ return this->nickName; } 67 68 void setNickName( std::string nick ); 68 69 static bool changeNickHandler( MessageId messageId, byte * data, int dataLength, void * someData, int userId ); 69 70 void shellNick( const std::string& newNick ); 70 71 71 72 static void deleteAllPlayerStats(); 72 73 73 74 static ScoreList getScoreList(); 74 75 … … 97 98 int modelFileName_handle; 98 99 int nickName_handler; 99 100 100 101 void init(); 101 102 };
Note: See TracChangeset
for help on using the changeset viewer.