39 typedef std::shared_ptr<Race>
shared;
45 Race(std::string data_file);
50 void realize(std::shared_ptr<Game> game, std::vector<Player::shared> players);
59 void next(std::string data_file);
61 void add(std::vector<Player::shared> players);
71 bool end(std::vector<Car::shared> cars);
Race(std::string data_file)
Definition: race.cpp:20
virtual ~Race()
Definition: race.cpp:25
std::shared_ptr< Race > shared
Definition: race.h:39
void start()
Definition: race.cpp:69
std::vector< std::string > player_nicks_
Definition: race.h:36
Track::shared circuit_
Definition: race.h:35
std::shared_ptr< Game > game_
Definition: race.h:30
void update(float delta)
Definition: race.cpp:29
void add(std::vector< Player::shared > players)
void reset_powerups()
Definition: race.cpp:112
Timer timer_
Definition: race.h:43
PowerUp::shared nitro_
Definition: race.h:33
void configure_grid()
Definition: race.cpp:254
void realize(std::shared_ptr< Game > game, std::vector< Player::shared > players)
Definition: race.cpp:42
void add_collision_hooks()
Definition: race.cpp:136
int number_of_laps_
Definition: race.h:32
Section get_section(int index)
Definition: race.cpp:245
std::shared_ptr< Player > shared
Definition: player.h:14
void add_stairs()
Definition: race.cpp:197
void create_powerups(void)
Definition: race.cpp:57
void next(std::string data_file)
Definition: race.cpp:85
std::shared_ptr< PowerUp > shared
Definition: powerup.h:45
void add_collision_with_circuit(Car::shared car)
Definition: race.cpp:148
std::shared_ptr< Car > shared
Definition: car.h:44
void pause()
Definition: race.cpp:80
std::vector< btVector3 > starting_grid_
Definition: race.h:41
PowerUp::shared money_
Definition: race.h:33
void reset()
Definition: race.cpp:95
Player::shared get_player(std::string nick)
std::vector< std::pair< std::string, int > > get_players_positions()
Definition: race.cpp:234
std::shared_ptr< Track > shared
Definition: track.h:59
void update_players(float delta)
Definition: race.cpp:174
bool has_ended()
Definition: race.cpp:118
void config_cars_in_login_order()
Definition: race.cpp:180
void reset_cars()
Definition: race.cpp:104
std::vector< Player::shared > players_
Definition: race.h:34
void add_collision_with_cars(Player::shared target)
Definition: race.cpp:159
void config_race()
Definition: race.cpp:74
bool end(std::vector< Car::shared > cars)
Definition: race.cpp:127