PSPFLoader Class Reference

#include <PSPFLoader.h>

Inherits PSPFWorld.

List of all members.

Public Member Functions

 PSPFLoader ()
 PSPFLoader.
 ~PSPFLoader ()
 ~PSPFLoader
virtual void KeyDown (unsigned short Key)
 KeyDown.
virtual void KeyUp (unsigned short Key)
 KeyUp.
virtual void Update (unsigned long mCount)
 Update.
virtual void Draw ()
 KeyDraw.
virtual void Focused ()
 KeyFocused.
virtual void AnalogProcess (const short analX, const short analY)
 AnalogProcesses.

Protected Member Functions

virtual void LoadResources (unsigned int iFase)
 LoadResources.
void Load (PSPFObject *object, string name, unsigned int size=1)
 Load.
void setMax (unsigned int qtdMax)
 setMax
unsigned int getMax ()
 getMax
unsigned int getLoaded ()
 getLoaded
float getPercent ()
 getPercent


Constructor & Destructor Documentation

PSPFLoader::PSPFLoader (  ) 

PSPFLoader.

create a new instance of PSPFLoader. The class PSPFLoader has as function, implement a phase that allows that load the resources to each main's interaction loop.

PSPFLoader::~PSPFLoader (  ) 

~PSPFLoader

Loader destructor.


Member Function Documentation

virtual void PSPFLoader::LoadResources ( unsigned int  iFase  )  [protected, virtual]

LoadResources.

Load the phase's resources. This method should be overwitten in the classes daughters and implemented the loading of each one of the game resources.

Parameters:
iFase Este parametro indica em qual ponto está o Loading.
See also:
Load Function that allocates the loaded resources in ResourceManager.

void PSPFLoader::Load ( PSPFObject object,
string  name,
unsigned int  size = 1 
) [protected]

Load.

It puts the resources in Load and it increases all was loaded. This function should be called to add the loaded elements in ResourceManager and increase the loader's progress.

Parameters:
object Object that should be added in ResourceManager.
name Object's name will be passed to ResourceManager
size resource's weigh for the loader. This parameter allows that more heavier things (images and sounds) have a larger influences than fonts.

void PSPFLoader::setMax ( unsigned int  qtdMax  )  [protected]

setMax

It defines the maximum value for loading. The informed value in this function it serves as base to calculate the % game's loaded.

Parameters:
qtdMax Maximum value that will be carried.

unsigned int PSPFLoader::getMax (  )  [protected]

getMax

This function return the setMax.

unsigned int PSPFLoader::getLoaded (  )  [protected]

getLoaded

This function return the accumulated of weight of Load.

float PSPFLoader::getPercent (  )  [protected]

getPercent

Return the percentage of Load. For this function work correctly, is necessary to inform Max (setMax) and use the method Load to allocate the resources in the manager.

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

KeyDown.

See the documentation of PSPFWorld

Reimplemented from PSPFWorld.

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

KeyUp.

See the documentation of PSPFWorld

Reimplemented from PSPFWorld.

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

Update.

This method implements loader's Update. To each Update, the system will increase the pass, so that calls the function LoadResources. See the documentation of PSPFWorld for larger details.

Reimplemented from PSPFWorld.

virtual void PSPFLoader::Draw (  )  [virtual]

KeyDraw.

See the documentation of PSPFWorld

Reimplemented from PSPFWorld.

virtual void PSPFLoader::Focused (  )  [virtual]

KeyFocused.

See the documentation of PSPFWorld

Reimplemented from PSPFWorld.

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

AnalogProcesses.

See the documentation of PSPFWorld

Reimplemented from PSPFWorld.


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