#include <Controller.h>

Public Member Functions | |
| Controller (MVFirefly *firefly, Camera *camera, GLfloat speed) | |
| Standard Constructor. | |
| Controller (const Controller &source) | |
| Copy Constructor. | |
| ~Controller () | |
| Destructor. | |
| void | setFirefly (MVFirefly *firefly) |
| void | update (Uint32 time) |
| Calculates a new position for cam and bug. | |
| virtual string | toString () const |
| Returns a textual representation. | |
| virtual string | className () const |
| Returns the class name of the object. | |
| virtual enum classId | classId () const |
| Returns the class id of the object. | |
Private Attributes | |
| MVFirefly * | firefly |
| Camera * | camera |
| Uint32 | lastUpdate |
| GLfloat | speed |
Locks Camera at the Firefly and moves both
Standard Constructor.
| firefly | the firefly to take care of | |
| camera | the camera to take care of |
| Controller::Controller | ( | const Controller & | source | ) |
Copy Constructor.
| source | the object to copy |
| Controller::~Controller | ( | ) |
Destructor.
| void Controller::setFirefly | ( | MVFirefly * | firefly | ) |
| void Controller::update | ( | Uint32 | time | ) |
Calculates a new position for cam and bug.
| string Controller::toString | ( | ) | const [virtual] |
Returns a textual representation.
Reimplemented from Object.
| string Controller::className | ( | ) | const [virtual] |
Returns the class name of the object.
Reimplemented from Object.
| enum classId Controller::classId | ( | ) | const [virtual] |
MVFirefly* Controller::firefly [private] |
Camera* Controller::camera [private] |
Uint32 Controller::lastUpdate [private] |
GLfloat Controller::speed [private] |
1.5.6