Changeset 9691 in orxonox.OLD for branches/new_class_id/src/util
- Timestamp:
- Aug 22, 2006, 11:45:21 PM (18 years ago)
- 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 38 38 39 39 virtual int getTeamForNewUser(); 40 virtual ClassIDgetPlayableClassId( int userId, int team );41 virtual std::string getPlayableModelTextureFileName( int userId, int team, ClassIDclassId );42 virtual std::string getPlayableModelFileName( int userId, int team, ClassIDclassId );43 virtual float getPlayableScale( int userId, int team, ClassIDclassId );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 ); 44 44 45 45 virtual void registerSpawn( WorldEntity * we ); … … 50 50 inline void setDeathPenaltyTimeout(float time) { this->deathTimeout = time; } 51 51 inline void setMaxKills(int kills) { this->maxKills = kills; } 52 52 53 53 inline void setNumTeams( int numTeams ){ this->numTeams = numTeams; } 54 54 inline int getNumTeams(){ return this->numTeams; } 55 55 56 56 int getRandomTeam(); 57 57 58 58 virtual void process(const Event &event); 59 59 60 60 void onKill( WorldEntity * victim, WorldEntity * killer ); 61 61 void onRespawn( int userId ); 62 62 63 63 virtual void handleChatMessage( int userId, const std::string & message, int messageType ); 64 64 65 65 void respawnPlayable( Playable * playable, int teamId, float delay ); 66 66 … … 84 84 85 85 OrxGui::GLGuiBox* box; 86 86 87 87 OrxGui::GLGuiInputLine* input; 88 88 89 89 void calculateTeamScore(); 90 90 void nextGameState(); … … 92 92 void teamChange( int userId ); 93 93 void assignPlayable(); 94 94 95 95 void onButtonSpectator(); 96 96 void onButtonRandom(); … … 99 99 void onButtonCancel(); 100 100 void onButtonExit(); 101 101 102 102 void onInputEnter( const std::string & text ); 103 103 104 104 OrxGui::GLGuiBox* statsBox; 105 105 OrxGui::GLGuiTable* table; 106 106 void tickStatsTable(); 107 107 108 108 void showStats(); 109 109 void hideStats(); -
branches/new_class_id/src/util/network_game_rules.h
r9235 r9691 19 19 NetworkGameRules( const TiXmlElement* root ); 20 20 virtual ~NetworkGameRules(); 21 21 22 22 virtual int getTeamForNewUser(); 23 virtual ClassIDgetPlayableClassId( int userId, int team );24 virtual std::string getPlayableModelFileName( int userId, int team, ClassIDclassId );25 virtual std::string getPlayableModelTextureFileName( int userId, int team, ClassIDclassId );26 virtual float getPlayableScale( int userId, int team, ClassIDclassId );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 28 28 virtual PlayerStats * getNewPlayerStats( int userId ){ return new PlayerStats( userId ); } 29 29 30 30 virtual void handleChatMessage( int userId, const std::string & message, int messageType ) = 0; 31 31 32 32 void shellSay( const std::string & message ); 33 33
Note: See TracChangeset
for help on using the changeset viewer.