21 #include <IceUtil/IceUtil.h>
36 class Game:
public std::enable_shared_from_this<Game> {
44 typedef std::shared_ptr<Game>
shared;
72 void start(
int seconds);
76 Ice::AsyncResultPtr
login();
std::shared_ptr< StateMachine > state_machine_
Definition: game.h:39
std::shared_ptr< Animation > shared
Definition: animation.h:27
std::shared_ptr< PhysicsDebugDrawer > shared
Definition: physicsdebugdrawer.h:141
std::shared_ptr< Race > shared
Definition: race.h:39
void add_race(Race::shared race)
Timer timer_
Definition: game.h:38
std::shared_ptr< CarFactory > shared
Definition: carfactory.h:10
Definition: statemachine.h:6
Animation::shared animation_
Definition: game.h:60
std::shared_ptr< Game > shared
Definition: game.h:44
StateName
Definition: game.h:35
std::shared_ptr< Physics > shared
Definition: physics.h:33
Player::shared get_human_player()
Definition: game.cpp:147
void game_loop()
Definition: game.cpp:103
GUI::shared gui_
Definition: game.h:57
void start()
Definition: game.cpp:80
CarFactory::shared car_factory_
Definition: game.h:61
float delta_
Definition: game.h:48
std::shared_ptr< Scene > shared
Definition: scene.h:43
const float FPS
Definition: game.h:37
Scene::shared scene_
Definition: game.h:55
void realize()
Definition: game.cpp:65
bool gui_shutdown(const CEGUI::EventArgs &event)
Definition: game.cpp:141
EventListener::shared input_
Definition: game.h:56
Mode
Definition: game.h:45
void shutdown()
Definition: game.cpp:136
std::shared_ptr< Player > shared
Definition: player.h:14
Session::shared session_
Definition: game.h:62
std::string ip_
Definition: game.h:52
void create_remote_players(Tinman::LoginInfo login_info)
void init()
Definition: game.cpp:34
std::shared_ptr< Sound > shared
Definition: sound.h:13
void add_debug_adapter()
Definition: game.cpp:152
virtual ~Game()
Definition: game.cpp:50
PhysicsDebugDrawer::shared physics_drawer_
Definition: game.h:41
void disconnect()
Definition: game.cpp:98
void change_state()
Definition: game.cpp:54
void add_debug_drawer()
Definition: game.cpp:159
void step()
Definition: game.cpp:120
Game()
Definition: game.cpp:20
Ice::CommunicatorPtr communicator_
Definition: game.h:64
int port_
Definition: game.h:53
std::vector< std::pair< std::string, int > > race_results_
Definition: game.h:50
Physics::shared physics_
Definition: game.h:59
int frame_counter_
Definition: game.h:40
void set_current_state(StateName state)
Definition: game.cpp:59
Ice::AsyncResultPtr login()
Definition: game.cpp:88
Mode mode_
Definition: game.h:47
void update_remote_players(Tinman::Snapshot snapshot)
std::shared_ptr< EventListener > shared
Definition: input.h:56
std::shared_ptr< GUI > shared
Definition: gui.h:36
ObjectAdapterPtr debug_adapter_
Definition: game.h:65
float finish_time_
Definition: game.h:49
Sound::shared sound_
Definition: game.h:58
void complete_login(Ice::AsyncResultPtr async_result)
Definition: game.cpp:93
std::shared_ptr< Session > shared
Definition: session.h:48
std::string nick_
Definition: game.h:52