#include <PSPFLoader.h>
Inherits PSPFWorld.
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 |
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.
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.
iFase | Este parametro indica em qual ponto está o Loading. |
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.
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.
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] |
virtual void PSPFLoader::KeyUp | ( | unsigned short | Key | ) | [virtual] |
virtual void PSPFLoader::Update | ( | unsigned long | mCount | ) | [virtual] |
virtual void PSPFLoader::Draw | ( | ) | [virtual] |
virtual void PSPFLoader::Focused | ( | ) | [virtual] |
virtual void PSPFLoader::AnalogProcess | ( | const short | analX, | |
const short | analY | |||
) | [virtual] |