Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/network_game_rules.h @ 8319

Last change on this file since 8319 was 8147, checked in by bensch, 19 years ago

orxonox/trunk: merged the network branche back here
merged with command:
svn merge -r8070:HEAD https://svn.orxonox.net/orxonox/branches/network .
no conflicts

File size: 702 bytes
RevLine 
[8024]1/*!
2 * @file network_game_rules.h
3 * @brief Definition of NetworkGameRules
4 */
5
6#ifndef _NETWORK_GAME_RULES_H
7#define _NETWORK_GAME_RULES_H
8
9#include "game_rules.h"
10
11#include "player_stats.h"
12
13class TiXmlElement;
14
15class NetworkGameRules : public GameRules
16{
17
18  public:
19    NetworkGameRules( const TiXmlElement* root );
20    virtual ~NetworkGameRules();
21   
[8067]22    virtual int getTeamForNewUser();
[8147]23    virtual ClassID getPlayableClassId( int userId, int team );
24    virtual std::string getPlayableModelFileName( int userId, int team, ClassID classId );
[8024]25   
[8067]26    virtual PlayerStats * getNewPlayerStats( int userId ){ return new PlayerStats( userId ); }
[8024]27
28
29  private:
30
31};
32
33#endif /* _NETWORK_GAME_RULES_H */
Note: See TracBrowser for help on using the repository browser.