CodeController Class Reference

This is a dummy controller that doesn't react to any user input but should be controlled by code. More...

#include <codecontroller.hpp>

Inherits Controller.

List of all members.

Public Member Functions

 CodeController ()
virtual ~CodeController ()
void press (Control c, bool pressed=true)
void update ()


Detailed Description

This is a dummy controller that doesn't react to any user input but should be controlled by code.

Definition at line 26 of file codecontroller.hpp.


Constructor & Destructor Documentation

CodeController::CodeController (  ) 

Definition at line 19 of file codecontroller.cpp.

00020 {}

CodeController::~CodeController (  )  [virtual]

Definition at line 22 of file codecontroller.cpp.

00023 {}


Member Function Documentation

void CodeController::press ( Control  c,
bool  pressed = true 
)

Definition at line 26 of file codecontroller.cpp.

References Controller::controls.

Referenced by GameSession::process_events(), EndSequenceWalkRight::running(), EndSequenceWalkLeft::running(), and EndSequenceFireworks::running().

00027 {
00028   controls[c] = pressed;
00029 }

void CodeController::update (  )  [virtual]

Reimplemented from Controller.

Definition at line 32 of file codecontroller.cpp.

References Controller::CONTROLCOUNT, Controller::controls, and Controller::update().

Referenced by GameSession::process_events(), and EndSequence::running().

00033 {
00034   Controller::update();
00035 
00036   for(int i = 0; i < CONTROLCOUNT; ++i)
00037     controls[i] = false;
00038 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 03:38:29 2014 for SuperTux by  doxygen 1.5.1