Tinman  1.0
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
Session Class Reference

#include <session.h>

Inheritance diagram for Session:
Inheritance graph
[legend]
Collaboration diagram for Session:
Collaboration graph
[legend]

Public Types

typedef std::shared_ptr< Sessionshared
 

Public Member Functions

 Session (Race::shared race)
 
 Session (Race::shared new_race, Player::shared player)
 
void add_bot (std::string nick)
 
void add_network_player (std::string nick)
 
void add_instrumentated_player (std::string nick)
 
void update (float delta)
 
void realize ()
 
bool race_ended ()
 
void next_race ()
 
void store (Tinman::Snapshot snapshot)
 
Ice::AsyncResultPtr login ()
 
Tinman::LoginInfo complete_login (Ice::AsyncResultPtr login)
 
void reset ()
 
void disconnect (void)
 

Public Attributes

std::shared_ptr< Gamegame_
 
Race::shared race_
 
std::vector< std::string > players_nicks_
 
Player::shared human_player_
 
std::vector< Player::sharedplayers_
 

Private Member Functions

Player::shared get_player (std::string nick)
 
Player::shared get_player (Ice::Byte id)
 
void add_remote_players (Tinman::LoginInfo login_info)
 
void create_overlays (void)
 
void config_cars_in_login_order (void)
 
void update_players (float delta)
 
void update_overlays (void)
 
void update_ranking ()
 
std::string to_string_with_precision (const float number, const int n)
 
void configure_race ()
 
void reset_race ()
 
void active_animation (std::string node, std::string animation_name)
 
int get_human_player_position ()
 

Private Attributes

Tinman::LoginInfo login_info_
 
Ogre::OverlayElement * timer_
 
Ogre::OverlayElement * lap_overlay_
 
Ogre::OverlayElement * nitro_overlay_
 
Ogre::OverlayElement * position_overlay_
 
PowerUp::shared nitro_
 
PowerUp::shared money_
 
std::vector< Tinman::Snapshot > snapshots_
 
int track_
 
std::vector< std::pair< std::string, int > > players_positions_
 

Member Typedef Documentation

typedef std::shared_ptr<Session> Session::shared

Constructor & Destructor Documentation

Session::Session ( Race::shared  race)
Session::Session ( Race::shared  new_race,
Player::shared  player 
)

Member Function Documentation

void Session::active_animation ( std::string  node,
std::string  animation_name 
)
private
void Session::add_bot ( std::string  nick)
void Session::add_instrumentated_player ( std::string  nick)
void Session::add_network_player ( std::string  nick)
void Session::add_remote_players ( Tinman::LoginInfo  login_info)
private
Tinman::LoginInfo Session::complete_login ( Ice::AsyncResultPtr  login)
void Session::config_cars_in_login_order ( void  )
private
void Session::configure_race ( )
private
void Session::create_overlays ( void  )
private
void Session::disconnect ( void  )
int Session::get_human_player_position ( )
private
Player::shared Session::get_player ( std::string  nick)
private
Player::shared Session::get_player ( Ice::Byte  id)
private
Ice::AsyncResultPtr Session::login ( )
void Session::next_race ( )
bool Session::race_ended ( )
void Session::realize ( )
void Session::reset ( )
void Session::reset_race ( )
private
void Session::store ( Tinman::Snapshot  snapshot)
std::string Session::to_string_with_precision ( const float  number,
const int  n 
)
private
void Session::update ( float  delta)
void Session::update_overlays ( void  )
private
void Session::update_players ( float  delta)
private
void Session::update_ranking ( )
private

Member Data Documentation

std::shared_ptr<Game> Session::game_
Player::shared Session::human_player_
Ogre::OverlayElement * Session::lap_overlay_
private
Tinman::LoginInfo Session::login_info_
private
PowerUp::shared Session::money_
private
PowerUp::shared Session::nitro_
private
Ogre::OverlayElement * Session::nitro_overlay_
private
std::vector<Player::shared> Session::players_
std::vector<std::string> Session::players_nicks_
std::vector<std::pair<std::string, int> > Session::players_positions_
private
Ogre::OverlayElement * Session::position_overlay_
private
Race::shared Session::race_
std::vector<Tinman::Snapshot> Session::snapshots_
private
Ogre::OverlayElement* Session::timer_
private
int Session::track_
private

The documentation for this class was generated from the following files: