From fae209a9e93400c3a2072befda9c820634cf9278 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 25 Dec 2010 12:54:59 +0100 Subject: Restructured repository. --- server/game.h | 75 ----------------------------------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 server/game.h (limited to 'server/game.h') diff --git a/server/game.h b/server/game.h deleted file mode 100644 index 874a525..0000000 --- a/server/game.h +++ /dev/null @@ -1,75 +0,0 @@ -#ifndef GAME_H -#define GAME_H - -#include -#include - -#include - -#include "wall.h" -#include "player.h" - -class Game : public boost::enable_shared_from_this { - public: - typedef boost::shared_ptr p; - - static p create(ClientBase::p player_1, ClientBase::p player_2, ClientBase::p player_3, ClientBase::p player_4); - - ~Game(); - - private: - Player players[4]; - - Wall wall; - - Tiles dora; - - bool kan_dora_pending; - - PlayerNum current_player; - - PlayerNum round_wind; - PlayerNum round_num; - - int awaiting_players; - - Action preceding_action; - int preceding_action_owner; - - Game(ClientBase::p player_1, ClientBase::p player_2, ClientBase::p player_3, ClientBase::p player_4); - - //! Handle Ready message from player. - void handle_ready(); - - //! Start the game. - void start(); - - //! Start a new round. - void round_start(); - - //! Send update after a tile is drawn. - void round_update_draw(); - - //! Send update after a tile is discarded. - void round_update_discard(); - - //! Handle action after draw. - void handle_action_draw(Action action); - - //! Handle actions after discard. - void handle_action_discard(Action action, int player); - - enum Endcondition { - Draw, - Tsumo, - Ron - }; - - //! End the round. - void round_end(Endcondition end); - - //! End the game - void game_end(); -}; - -#endif -- cgit v1.2.3