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

#include <bot.h>

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

Public Member Functions

 BotController (Physics::shared physics, Car::shared car)
 
virtual ~BotController ()
 
void update (float delta)
 
void exec (Tinman::Action action)
 
void configure ()
 
void add_race (std::shared_ptr< Race > race)
 
- Public Member Functions inherited from Controller
 Controller (Car::shared car)
 
virtual ~Controller ()
 
void store (Tinman::CarInfo car_info)
 
void disconnect ()
 

Private Member Functions

void perform_action (btVector3 next_destination)
 
void go_to_waypoint ()
 
bool detect_obstacles (float delta)
 

Private Attributes

int index_
 
std::shared_ptr< Racerace_
 
Physics::shared physics_
 
Section previous_segment_
 
Section current_segment_
 
float stucked_
 
float colliding_
 
const float collide_limit_ = 0.16
 
const float stuck_limit_ = 0.54
 

Additional Inherited Members

- Public Types inherited from Controller
typedef std::shared_ptr< Controllershared
 
- Public Attributes inherited from Controller
std::queue< Tinman::CarInfo > updates_
 
Car::shared car_
 
ControllerObserver::shared observer_
 

Constructor & Destructor Documentation

BotController::BotController ( Physics::shared  physics,
Car::shared  car 
)
BotController::~BotController ( )
virtual

Member Function Documentation

void BotController::add_race ( std::shared_ptr< Race race)
void BotController::configure ( )
virtual

Implements Controller.

bool BotController::detect_obstacles ( float  delta)
private
void BotController::exec ( Tinman::Action  action)
virtual

Implements Controller.

void BotController::go_to_waypoint ( )
private
void BotController::perform_action ( btVector3  next_destination)
private
void BotController::update ( float  delta)
virtual

Implements Controller.

Member Data Documentation

const float BotController::collide_limit_ = 0.16
private
float BotController::colliding_
private
Section BotController::current_segment_
private
int BotController::index_
private
Physics::shared BotController::physics_
private
Section BotController::previous_segment_
private
std::shared_ptr<Race> BotController::race_
private
const float BotController::stuck_limit_ = 0.54
private
float BotController::stucked_
private

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