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

#include <human.h>

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

Public Types

typedef std::map< OIS::KeyCode, std::pair< Tinman::Action, Tinman::Action > > KeyBinding
 
- Public Types inherited from Controller
typedef std::shared_ptr< Controllershared
 

Public Member Functions

 HumanController (EventListener::shared listener, KeyBinding key_bindings, Car::shared car)
 
virtual ~HumanController ()
 
void configure ()
 
void exec (Tinman::Action action)
 
void update (float delta)
 
- Public Member Functions inherited from Controller
 Controller (Car::shared car)
 
virtual ~Controller ()
 
void store (Tinman::CarInfo car_info)
 
void disconnect ()
 

Public Attributes

bool network_mode_
 
- Public Attributes inherited from Controller
std::queue< Tinman::CarInfo > updates_
 
Car::shared car_
 
ControllerObserver::shared observer_
 

Private Attributes

EventListener::shared input_
 
KeyBinding key_bindings_
 

Member Typedef Documentation

typedef std::map<OIS::KeyCode, std::pair<Tinman::Action, Tinman::Action> > HumanController::KeyBinding

Constructor & Destructor Documentation

HumanController::HumanController ( EventListener::shared  listener,
KeyBinding  key_bindings,
Car::shared  car 
)
HumanController::~HumanController ( )
virtual

Member Function Documentation

void HumanController::configure ( )
virtual

Implements Controller.

void HumanController::exec ( Tinman::Action  action)
virtual

Implements Controller.

void HumanController::update ( float  delta)
virtual

Implements Controller.

Member Data Documentation

EventListener::shared HumanController::input_
private
KeyBinding HumanController::key_bindings_
private
bool HumanController::network_mode_

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