Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 27, 2006, 12:54:39 PM (19 years ago)
Author:
patrick
Message:
  • removing entities from the network works now also on proxies.
  • player team change is handled differently now: handler function
  • there was a chronological error in the change team function call stack
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/player_stats.h

    r9110 r9504  
    3030
    3131//! A class for storing player information
    32 class PlayerStats : public Synchronizeable 
     32class PlayerStats : public Synchronizeable
    3333{
    3434
     
    3737    PlayerStats( int userId );
    3838    virtual ~PlayerStats();
    39    
     39
    4040    virtual void varChangeHandler( std::list<int> & id );
    41    
     41
    4242    static PlayerStats * getStats( int userId );
    43    
     43
    4444    inline int getUserId(){ return userId; }
    45    
     45
    4646    inline int getTeamId(){ return teamId; }
    4747    inline void setTeamId( int teamId ){ this->teamId = teamId; }
    48    
     48
     49    void setPreferedTeamIdHandler( int newTeamId);
    4950    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
    5253    inline int getScore(){ return score; }
    5354    inline void setScore( int score ){ this->score = score; }
    54    
     55
    5556    inline int getPlayableClassId(){ return playableClassId; }
    5657    void setPlayableClassId( int classId ){ this->playableClassId = classId; };
    57    
     58
    5859    inline int getPlayableUniqueId(){ return playableUniqueId; }
    5960    void setPlayableUniqueId( int uniqueId );
    60    
     61
    6162    inline std::string getModelFileName(){ return modelFileName; }
    6263    inline void setModelFileName( std::string filename ){ modelFileName = filename; }
    63    
     64
    6465    Playable * getPlayable();
    65    
     66
    6667    inline std::string getNickName(){ return this->nickName; }
    6768    void setNickName( std::string nick );
    6869    static bool changeNickHandler( MessageId messageId, byte * data, int dataLength, void * someData, int userId );
    6970    void shellNick( const std::string&  newNick );
    70    
     71
    7172    static void deleteAllPlayerStats();
    72    
     73
    7374    static ScoreList getScoreList();
    7475
     
    9798    int modelFileName_handle;
    9899    int nickName_handler;
    99    
     100
    100101    void init();
    101102};
Note: See TracChangeset for help on using the changeset viewer.