#include <staticprovider.h>
Public Member Functions | |
StaticProvider (ArchiveLoader *archiveLoader) | |
void | init () |
void | onGameLoop () |
void | shutdown () |
Resources::Level * | getLevel () const |
VisualImageXMG * | getCursorImage (uint32 cursor) const |
VisualImageXMG * | getUIElement (UIElement element) const |
VisualImageXMG * | getUIElement (UIElement element, uint32 index) const |
VisualImageXMG * | getUIImage (UIImage image) const |
Resources::Sound * | getUISound (UISound sound) const |
void | goToAnimScriptStatement (UIElement stockUIElement, int animScriptItemIndex) |
Resources::Location * | loadLocation (const char *locationName) |
bool | isStaticLocation () const |
Resources::Location * | getLocation () const |
Resources::Sound * | getLocationSound (uint16 index) const |
void | unloadLocation (Resources::Location *location) |
Static Resource provider.
Maintains the static resource trees. Maintained trees are the level and the location ones.
void Stark::StaticProvider::init | ( | ) |
Load the static level archive
void Stark::StaticProvider::onGameLoop | ( | ) |
State update loop
void Stark::StaticProvider::shutdown | ( | ) |
Release the static resources
|
inline |
Obtain the static level
VisualImageXMG* Stark::StaticProvider::getCursorImage | ( | uint32 | cursor | ) | const |
Get an image for a static cursor
VisualImageXMG* Stark::StaticProvider::getUIElement | ( | UIElement | element | ) | const |
Get an image for a static UI element
VisualImageXMG* Stark::StaticProvider::getUIImage | ( | UIImage | image | ) | const |
Get an image for a static UI element
Resources::Sound* Stark::StaticProvider::getUISound | ( | UISound | sound | ) | const |
Get a static UI sound resource
void Stark::StaticProvider::goToAnimScriptStatement | ( | UIElement | stockUIElement, |
int | animScriptItemIndex | ||
) |
Move execution of a static UI element anim script to the specified item
Resources::Location* Stark::StaticProvider::loadLocation | ( | const char * | locationName | ) |
Load a static location and set it as current
bool Stark::StaticProvider::isStaticLocation | ( | ) | const |
Is a static location currently loaded?
Resources::Location* Stark::StaticProvider::getLocation | ( | ) | const |
Obtain the currently loaded static location, if any
Resources::Sound* Stark::StaticProvider::getLocationSound | ( | uint16 | index | ) | const |
Look up a sound resource in the current static location by its index
void Stark::StaticProvider::unloadLocation | ( | Resources::Location * | location | ) |
Unload the current static location