diff options
| author | Alfred Eriksson <somerunce@gmail.com> | 2008-09-07 08:10:56 +0000 |
|---|---|---|
| committer | Alfred Eriksson <somerunce@gmail.com> | 2008-09-07 08:10:56 +0000 |
| commit | 6dcea2c4ca59e0f1ac8450cc31550bdb35bc21b1 (patch) | |
| tree | 52d63fa64e79123e34e19c15819dbd0fb889abc4 /src/game/server/gamecontroller.hpp | |
| parent | 4fb71c1bca5b5acd86f8ef92441ff687679a95a7 (diff) | |
| download | zcatch-6dcea2c4ca59e0f1ac8450cc31550bdb35bc21b1.tar.gz zcatch-6dcea2c4ca59e0f1ac8450cc31550bdb35bc21b1.zip | |
mermerge from 0.4.3: auto team balancing
Diffstat (limited to 'src/game/server/gamecontroller.hpp')
| -rw-r--r-- | src/game/server/gamecontroller.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/server/gamecontroller.hpp b/src/game/server/gamecontroller.hpp index 1a87034b..2cffc8a8 100644 --- a/src/game/server/gamecontroller.hpp +++ b/src/game/server/gamecontroller.hpp @@ -34,7 +34,7 @@ protected: void cyclemap(); void resetgame(); - + const char *gametype; int round_start_tick; @@ -52,6 +52,8 @@ protected: public: bool is_teamplay() const; + int unbalanced_tick; + GAMECONTROLLER(); void do_team_score_wincheck(); @@ -118,6 +120,8 @@ public: virtual const char *get_team_name(int team); virtual int get_auto_team(int notthisid); virtual bool can_join_team(int team, int notthisid); + bool check_team_balance(); + bool can_change_team(PLAYER *pplayer, int jointeam); int clampteam(int team); virtual void post_reset(); |