19 #include <OgreTextAreaOverlayElement.h>
30 class Session:
public std::enable_shared_from_this<Session> {
48 typedef std::shared_ptr<Session>
shared;
63 void store(Tinman::Snapshot snapshot);
65 Ice::AsyncResultPtr
login();
Ogre::OverlayElement * nitro_overlay_
Definition: session.h:33
std::shared_ptr< Race > shared
Definition: race.h:39
void disconnect(void)
Definition: session.cpp:124
std::shared_ptr< Game > game_
Definition: session.h:42
void add_bot(std::string nick)
Definition: session.cpp:33
std::vector< Player::shared > players_
Definition: session.h:46
std::vector< std::pair< std::string, int > > players_positions_
Definition: session.h:39
Race::shared race_
Definition: session.h:43
Ogre::OverlayElement * lap_overlay_
Definition: session.h:33
void add_network_player(std::string nick)
Definition: session.cpp:39
std::shared_ptr< Player > shared
Definition: player.h:14
std::shared_ptr< PowerUp > shared
Definition: powerup.h:45
Ogre::OverlayElement * timer_
Definition: session.h:33
void config_cars_in_login_order(void)
void configure_race()
Definition: session.cpp:157
Player::shared human_player_
Definition: session.h:45
void store(Tinman::Snapshot snapshot)
Definition: session.cpp:136
Tinman::LoginInfo complete_login(Ice::AsyncResultPtr login)
Definition: session.cpp:115
void update_players(float delta)
void add_instrumentated_player(std::string nick)
Definition: session.cpp:45
std::string to_string_with_precision(const float number, const int n)
Definition: session.cpp:129
Ice::AsyncResultPtr login()
Definition: session.cpp:107
void update_overlays(void)
Definition: session.cpp:88
std::vector< Tinman::Snapshot > snapshots_
Definition: session.h:36
Tinman::LoginInfo login_info_
Definition: session.h:31
PowerUp::shared money_
Definition: session.h:34
PowerUp::shared nitro_
Definition: session.h:34
void active_animation(std::string node, std::string animation_name)
Session(Race::shared race)
Definition: session.cpp:20
void create_overlays(void)
Definition: session.cpp:69
std::vector< std::string > players_nicks_
Definition: session.h:44
void update_ranking()
Definition: session.cpp:99
Ogre::OverlayElement * position_overlay_
Definition: session.h:33
void add_remote_players(Tinman::LoginInfo login_info)
Definition: session.cpp:52
int track_
Definition: session.h:38
int get_human_player_position()
Definition: session.cpp:162
Player::shared get_player(std::string nick)
void reset_race()
Definition: session.cpp:149
void realize()
Definition: session.cpp:62
void reset()
Definition: session.cpp:142
std::shared_ptr< Session > shared
Definition: session.h:48
void update(float delta)
Definition: session.cpp:77