Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9691 in orxonox.OLD for branches/new_class_id/src/util


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

new_class_id: adapted Network

Location:
branches/new_class_id/src/util
Files:
2 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();
  • branches/new_class_id/src/util/network_game_rules.h

    r9235 r9691  
    1919    NetworkGameRules( const TiXmlElement* root );
    2020    virtual ~NetworkGameRules();
    21    
     21
    2222    virtual int getTeamForNewUser();
    23     virtual ClassID getPlayableClassId( int userId, int team );
    24     virtual std::string getPlayableModelFileName( int userId, int team, ClassID classId );
    25     virtual std::string getPlayableModelTextureFileName( int userId, int team, ClassID classId );
    26     virtual float getPlayableScale( int userId, int team, ClassID classId );
    27    
     23    virtual const NewClassID& getPlayableClassId( int userId, int team );
     24    virtual std::string getPlayableModelFileName( int userId, int team, const NewClassID& classId );
     25    virtual std::string getPlayableModelTextureFileName( int userId, int team, const NewClassID& classId );
     26    virtual float getPlayableScale( int userId, int team, const NewClassID& classId );
     27
    2828    virtual PlayerStats * getNewPlayerStats( int userId ){ return new PlayerStats( userId ); }
    29    
     29
    3030    virtual void handleChatMessage( int userId, const std::string & message, int messageType ) = 0;
    31    
     31
    3232    void shellSay( const std::string & message );
    3333
Note: See TracChangeset for help on using the changeset viewer.