Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

MovementManager Class Reference

#include <movementmanager.h>

List of all members.

Public Member Functions

 MovementManager (const GraphicManager *gm, const Map *map)
const int Add (Movement *const pNew)
void Remove (const int ciIndex=-1)
void Move (const int ciIndex=-1)
void Display (const int ciIndex=-1)

Private Attributes

Movementtabmvt [OC_MOVEMENT_MAX]
const GraphicManagerpcGraphicMgr
const MappcMap

Detailed Description

Offer a simple way to handle all the moving stuff

Definition at line 37 of file movementmanager.h.

Member Function Documentation

void MovementManager::Move const int  ciIndex = -1  ) 

Send the move order to the specified or all the movement object. The object which can not move anymore is removed from the manager and destroyed automatically by calling "delete" on it.

Definition at line 94 of file movementmanager.cpp.

void MovementManager::Remove const int  ciIndex = -1  ) 

Explicitly remove the specified or all the movement object from the manager. The removed objects are destroyed by calling "delete" on them.

Definition at line 69 of file movementmanager.cpp.

Referenced by City::_Load().

The documentation for this class was generated from the following files:
Generated on Sat Nov 11 10:21:11 2006 for OpenCity by  doxygen 1.4.2