Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2006, 11:45:21 PM (18 years ago)
Author:
bensch
Message:

new_class_id: adapted Network

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/util/multiplayer_team_deathmatch.h

    r9235 r9691  
    3838
    3939    virtual int getTeamForNewUser();
    40     virtual ClassID getPlayableClassId( int userId, int team );
    41     virtual std::string getPlayableModelTextureFileName( int userId, int team, ClassID classId );
    42     virtual std::string getPlayableModelFileName( int userId, int team, ClassID classId );
    43     virtual float getPlayableScale( int userId, int team, ClassID classId );
     40    virtual const NewClassID& getPlayableClassId( int userId, int team );
     41    virtual std::string getPlayableModelTextureFileName( int userId, int team, const NewClassID& classId );
     42    virtual std::string getPlayableModelFileName( int userId, int team, const NewClassID& classId );
     43    virtual float getPlayableScale( int userId, int team, const NewClassID& classId );
    4444
    4545    virtual void registerSpawn( WorldEntity * we );
     
    5050    inline void setDeathPenaltyTimeout(float time) { this->deathTimeout = time; }
    5151    inline void setMaxKills(int kills) { this->maxKills = kills; }
    52    
     52
    5353    inline void setNumTeams( int numTeams ){ this->numTeams = numTeams; }
    5454    inline int getNumTeams(){ return this->numTeams; }
    55    
     55
    5656    int getRandomTeam();
    57    
     57
    5858    virtual void process(const Event &event);
    59    
     59
    6060    void onKill( WorldEntity * victim, WorldEntity * killer );
    6161    void onRespawn( int userId );
    62    
     62
    6363    virtual void handleChatMessage( int userId, const std::string & message, int messageType );
    64    
     64
    6565    void respawnPlayable( Playable * playable, int teamId, float delay );
    6666
     
    8484
    8585    OrxGui::GLGuiBox* box;
    86    
     86
    8787    OrxGui::GLGuiInputLine* input;
    88    
     88
    8989    void calculateTeamScore();
    9090    void nextGameState();
     
    9292    void teamChange( int userId );
    9393    void assignPlayable();
    94    
     94
    9595    void onButtonSpectator();
    9696    void onButtonRandom();
     
    9999    void onButtonCancel();
    100100    void onButtonExit();
    101    
     101
    102102    void onInputEnter( const std::string & text );
    103    
     103
    104104    OrxGui::GLGuiBox* statsBox;
    105105    OrxGui::GLGuiTable* table;
    106106    void tickStatsTable();
    107    
     107
    108108    void showStats();
    109109    void hideStats();
Note: See TracChangeset for help on using the changeset viewer.