Controller Class Reference

Manages movement. More...

#include <Controller.h>

Inheritance diagram for Controller:

Object

List of all members.

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

MVFireflyfirefly
Cameracamera
Uint32 lastUpdate
GLfloat speed


Detailed Description

Manages movement.

Locks Camera at the Firefly and moves both


Constructor & Destructor Documentation

Controller::Controller ( MVFirefly firefly,
Camera camera,
GLfloat  speed 
)

Standard Constructor.

Parameters:
firefly the firefly to take care of
camera the camera to take care of

Controller::Controller ( const Controller source  ) 

Copy Constructor.

Parameters:
source the object to copy

Controller::~Controller (  ) 

Destructor.


Member Function Documentation

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.

Returns:
a string descriping the run-time object

Reimplemented from Object.

string Controller::className (  )  const [virtual]

Returns the class name of the object.

Returns:
a string with the name of the object's class

Reimplemented from Object.

enum classId Controller::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from Object.


Member Data Documentation

Uint32 Controller::lastUpdate [private]

GLfloat Controller::speed [private]


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

Generated on Mon Jul 7 13:30:33 2008 for Firefly by  doxygen 1.5.6