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

#include <player.h>

Public Types

typedef std::shared_ptr< Playershared
 

Public Member Functions

 Player (std::string nick, Controller::shared controller, Sound::shared sound)
 
virtual ~Player ()
 
void realize (Physics::shared physics, Scene::shared scene, std::string name, btVector3 position, std::string material, int checkpoints, Ice::Byte id)
 
Ice::AsyncResultPtr login (std::shared_ptr< Session > session)
 
Ice::AsyncResultPtr next_race ()
 
Tinman::LoginInfo complete_login (Ice::AsyncResultPtr async_result)
 
void update (float delta)
 
void disconnect ()
 
void store (Tinman::CarInfo car_info)
 
void purchase ()
 
Car::shared get_car ()
 
std::string get_nick ()
 
void set_nick (std::string nick)
 
Ice::Byte get_id ()
 
void pick_money (int amount, PowerUp::shared money)
 
void pick_nitro (PowerUp::shared nitro)
 
void reset (int checkpoints, btVector3 position)
 
std::pair< std::string, int > get_socket ()
 
void set_socket (std::pair< std::string, int > socket)
 

Public Attributes

std::string race_ended_
 
Controller::shared controller_
 
int money_
 
std::string nick_
 

Private Attributes

Sound::shared sound_
 

Member Typedef Documentation

typedef std::shared_ptr<Player> Player::shared

Constructor & Destructor Documentation

Player::Player ( std::string  nick,
Controller::shared  controller,
Sound::shared  sound 
)
Player::~Player ( )
virtual

Member Function Documentation

Tinman::LoginInfo Player::complete_login ( Ice::AsyncResultPtr  async_result)
void Player::disconnect ( )
Car::shared Player::get_car ( )
Ice::Byte Player::get_id ( )
std::string Player::get_nick ( )
std::pair< std::string, int > Player::get_socket ( )
Ice::AsyncResultPtr Player::login ( std::shared_ptr< Session session)
Ice::AsyncResultPtr Player::next_race ( )
void Player::pick_money ( int  amount,
PowerUp::shared  money 
)
void Player::pick_nitro ( PowerUp::shared  nitro)
void Player::purchase ( )
void Player::realize ( Physics::shared  physics,
Scene::shared  scene,
std::string  name,
btVector3  position,
std::string  material,
int  checkpoints,
Ice::Byte  id 
)
void Player::reset ( int  checkpoints,
btVector3  position 
)
void Player::set_nick ( std::string  nick)
void Player::set_socket ( std::pair< std::string, int >  socket)
void Player::store ( Tinman::CarInfo  car_info)
void Player::update ( float  delta)

Member Data Documentation

Controller::shared Player::controller_
int Player::money_
std::string Player::nick_
std::string Player::race_ended_
Sound::shared Player::sound_
private

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