PSPFWorldManager Class Reference

#include <PSPFWorldManager.h>

List of all members.

Public Member Functions

virtual ~PSPFWorldManager ()
 ~PSPFWorldManager
unsigned long getTime ()
 getTime
void AddPSPFWorld (PSPFWorld *w)
 AddPSPFWorld.
void setWorldFocus (unsigned short Index)
 setWorldFocus
bool Run ()
 Run.

Static Public Member Functions

static PSPFWorldManagergetWorldManager ()
 getWorldManager


Constructor & Destructor Documentation

virtual PSPFWorldManager::~PSPFWorldManager (  )  [virtual]

~PSPFWorldManager

Destructor of the class PSPFWorldManager.


Member Function Documentation

static PSPFWorldManager* PSPFWorldManager::getWorldManager (  )  [static]

getWorldManager

This method return an instance PSPFWorldManager. The WorldManager is responsible for doing all updatings, controlling the imput events, processing and exit.

Returns:
an instance of PSPFWorldManager.

unsigned long PSPFWorldManager::getTime (  ) 

getTime

This method return the time elapsed in milisecond

Returns:
the time elapsed in the game.

void PSPFWorldManager::AddPSPFWorld ( PSPFWorld w  ) 

AddPSPFWorld.

This method adds a PSPFWorld in WorldManager. You should add your phases in WorldManager through this method, so that later you define which phase is the actual, through the setWorldFocus.

Parameters:
w Instance of a PSPFWorld that will be add.
See also:
setWorldFocus function that defines which of Worlds and the active.

void PSPFWorldManager::setWorldFocus ( unsigned short  Index  ) 

setWorldFocus

This function defines which of the worlds add in WorldManager will be the active. When define an active world, WorldManager will call the methods this world to process Key, Update and Draw.

Parameters:
Index Index's world that will be the active.
See also:
AddPSPFWord Function that adds a World in WorldManager.

bool PSPFWorldManager::Run (  ) 

Run.

This method begins the main loop game, doing that WorldManager begins call the methods actual world.


The documentation for this class was generated from the following file:
Generated on Sat Oct 27 20:25:29 2007 for PSPFramework by  doxygen 1.5.3