diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-24 14:47:03 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-24 14:47:03 +0000 |
| commit | 917ebc17c617dfd27e4e997dce713cb1dfb6cfdc (patch) | |
| tree | 11d85f18ef289de3de322bed5274dc616c23ac45 /src/game/server/gamecontext.hpp | |
| parent | 2f28978237f0ead749a39229f1c683df63d34871 (diff) | |
| download | zcatch-917ebc17c617dfd27e4e997dce713cb1dfb6cfdc.tar.gz zcatch-917ebc17c617dfd27e4e997dce713cb1dfb6cfdc.zip | |
begun the work on voting
Diffstat (limited to 'src/game/server/gamecontext.hpp')
| -rw-r--r-- | src/game/server/gamecontext.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/server/gamecontext.hpp b/src/game/server/gamecontext.hpp index dd10ec4d..83ada09f 100644 --- a/src/game/server/gamecontext.hpp +++ b/src/game/server/gamecontext.hpp @@ -43,6 +43,14 @@ public: void tick(); void snap(int client_id); + + // voting + void start_vote(const char *desc, const char *command); + void send_vote_set(int cid); + void send_vote_status(int cid); + int64 vote_closetime; + char vote_description[512]; + char vote_command[512]; // helper functions void create_damageind(vec2 p, float angle_mod, int amount); @@ -68,6 +76,7 @@ public: void send_weapon_pickup(int cid, int weapon); void send_broadcast(const char *text, int cid); void send_info(int who, int to_who); + }; extern GAMECONTEXT game; |