PSPFWorld Class Reference

#include <PSPFWorld.h>

Inherits PSPFObject.

Inherited by PSPFLoader.

List of all members.

Public Member Functions

 PSPFWorld ()
 PSPFWorld.
virtual ~PSPFWorld ()
 ~PSPFWorld
virtual void KeyDown (unsigned short Key)
 KeyDown.
virtual void KeyUp (unsigned short Key)
 KeyUp.
virtual void KeyProcess (const OSL_CONTROLLER *controler)
 KeyProcess.
virtual void AnalogProcess (const short analX, const short analY)
 AnalogProcess.
virtual void Update (unsigned long mCount)
 Update.
virtual void Draw ()
 Draw.
virtual void Focused ()
 Focused.


Constructor & Destructor Documentation

PSPFWorld::PSPFWorld (  ) 

PSPFWorld.

Create the class world. The world to control all the actions that will go to happen in your game. Each phase should have a different world.

virtual PSPFWorld::~PSPFWorld (  )  [virtual]

~PSPFWorld

Class destructor PSPFWorld. Here you have to overwrite and erase the things that were created but won't be more used.


Member Function Documentation

virtual void PSPFWorld::KeyDown ( unsigned short  Key  )  [virtual]

KeyDown.

This method should be overwrite for the inheritance and implemented the processing of your game. This method will be called by PSPFWorldManager where will be passed which button this being pressed.

Parameters:
Key Button that this being pressed.

Reimplemented in PSPFLoader.

virtual void PSPFWorld::KeyUp ( unsigned short  Key  )  [virtual]

KeyUp.

This method should be overwrite in your implementation. This and called by PSPFWorldManager when a button is release.

Parameters:
Key button that was free.

Reimplemented in PSPFLoader.

virtual void PSPFWorld::KeyProcess ( const OSL_CONTROLLER *  controler  )  [virtual]

KeyProcess.

This method serve to process all group of buttons. Case the your game has to verify which buttons were pressed / released to the same time, this method should be overwrite.

Parameters:
controler this parameter and past the type control OSL_CONTROLER

virtual void PSPFWorld::AnalogProcess ( const short  analX,
const short  analY 
) [virtual]

AnalogProcess.

This method serve to obtain the Analogical position of PSP. this is call to each interaction and allows verify the position X and Y of the button.

Parameters:
analX analogical position in X. Varies from -127 to 127.
analY analogical position in Y. Varies from -127 to 127.

Reimplemented in PSPFLoader.

virtual void PSPFWorld::Update ( unsigned long  mCount  )  [virtual]

Update.

This method is the responsible for updating the things of the world. You have to overwrite and call objects Update that are part of your game.

Parameters:
mCount time elapsed from game begin, in milisecond.

Reimplemented in PSPFLoader.

virtual void PSPFWorld::Draw (  )  [virtual]

Draw.

This method is responsible for drawing your phase. This should be overwrite and should call Draw of your objects.

Reimplemented in PSPFLoader.

virtual void PSPFWorld::Focused (  )  [virtual]

Focused.

This method is called as soon as PSPFWorldManager defines your world as main. Take advantage of him to discharge loaders, to initialize classes and etc.

Reimplemented in PSPFLoader.


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