Tinman
1.0
|
#include <race.h>
Public Types | |
typedef std::shared_ptr< Race > | shared |
Public Member Functions | |
Race (std::string data_file) | |
virtual | ~Race () |
void | update (float delta) |
void | realize (std::shared_ptr< Game > game, std::vector< Player::shared > players) |
void | add_collision_hooks () |
void | config_race () |
void | start () |
void | pause () |
void | reset () |
void | next (std::string data_file) |
void | add (std::vector< Player::shared > players) |
bool | has_ended () |
Section | get_section (int index) |
Public Attributes | |
std::vector< btVector3 > | starting_grid_ |
Timer | timer_ |
Private Member Functions | |
void | create_powerups (void) |
void | configure_grid () |
void | update_players (float delta) |
bool | end (std::vector< Car::shared > cars) |
Player::shared | get_player (std::string nick) |
void | config_cars_in_login_order () |
void | reset_powerups () |
void | reset_cars () |
void | add_stairs () |
std::vector< std::pair< std::string, int > > | get_players_positions () |
void | add_collision_with_circuit (Car::shared car) |
void | add_collision_with_cars (Player::shared target) |
Private Attributes | |
std::shared_ptr< Game > | game_ |
int | number_of_laps_ |
PowerUp::shared | nitro_ |
PowerUp::shared | money_ |
std::vector< Player::shared > | players_ |
Track::shared | circuit_ |
std::vector< std::string > | player_nicks_ |
typedef std::shared_ptr<Race> Race::shared |
Race::Race | ( | std::string | data_file | ) |
|
virtual |
void Race::add | ( | std::vector< Player::shared > | players | ) |
void Race::add_collision_hooks | ( | ) |
|
private |
|
private |
|
private |
|
private |
void Race::config_race | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
Section Race::get_section | ( | int | index | ) |
bool Race::has_ended | ( | ) |
void Race::next | ( | std::string | data_file | ) |
void Race::pause | ( | ) |
void Race::realize | ( | std::shared_ptr< Game > | game, |
std::vector< Player::shared > | players | ||
) |
void Race::reset | ( | ) |
|
private |
|
private |
void Race::start | ( | ) |
void Race::update | ( | float | delta | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
std::vector<btVector3> Race::starting_grid_ |
Timer Race::timer_ |