MovementController Class Reference

Manages movement. More...

#include <MovementController.h>

Inheritance diagram for MovementController:

Object

List of all members.

Public Member Functions

 MovementController (MVFirefly *firefly, Camera *camera)
 Standard Constructor.
 MovementController (const MovementController &source)
 Copy Constructor.
 ~MovementController ()
 Destructor.
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


Detailed Description

Manages movement.

Locks Camera at the Firefly and moves both


Constructor & Destructor Documentation

MovementController::MovementController ( MVFirefly firefly,
Camera camera 
)

Standard Constructor.

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

MovementController::MovementController ( const MovementController source  ) 

Copy Constructor.

Parameters:
source the object to copy

MovementController::~MovementController (  ) 

Destructor.


Member Function Documentation

void MovementController::update ( Uint32  time  ) 

Calculates a new position for cam and bug.

string MovementController::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from Object.

string MovementController::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 MovementController::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from Object.


Member Data Documentation


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

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