CAResources Class Reference

Offers global access to all resources. More...

#include <caresources.h>

List of all members.

Public Types

enum  AnimationMode { Forward, Backward, Revolving }

Public Member Functions

 ~CAResources ()
 Destructor.

Static Public Member Functions

static CAResourcesgetResources ()
 Gets the one and only Resources-Object.
static bool advanceAnimation (float *frameCounter, CL_Surface *surface, float fps, AnimationMode mode=Forward)
 Updates the frameCounter for the given surface so it shows fps frames per second.
static bool advanceAnimation (float *frameCounter, int numFrames, float fps, AnimationMode mode=Forward)
 Updates the frameCounter for the given maximal number of frames so it shows fps frames per second.

Public Attributes

CL_ResourceManager * resources
CL_Surface * gui_loading
CL_Surface * gui_progressbar
CL_Font * font_normal_11_white
CL_Font * font_normal_14_white
CL_Font * font_normal_22_white
CL_Font * font_normal_22_gray
CL_Font * font_lcd_13_green
CL_Surface * misc_cross
CL_Surface * misc_light
CL_Surface * misc_hitpoint
CL_Surface * misc_gunfire
CL_Surface * misc_carfire
CL_Surface * misc_checkflag
CL_Surface * misc_fog
CL_Surface * misc_dust
CL_Surface * misc_info
CL_Surface * misc_caution
CL_Surface * goody_turbo
CL_Surface * goody_life
CL_Surface * goody_money
CL_Surface * goody_bullets
CL_Surface * goody_fogbomb
CL_Surface * dust [CA_FPR]
 Rendered sprites for the players fog. Shared by all players.
CL_Surface * menu_bg
CL_Surface * menu_cursorani
CL_Surface * menu_bar
CL_Surface * panel_label
CL_Surface * panel_button
CL_Surface * panel_life
CL_Surface * panel_infoview
CL_Surface * panel_speed
CL_Surface * panel_turbo
CL_Surface * panel_turbolabel
CL_Surface * panel_death
CL_Surface * gui_edge1
CL_Surface * gui_edge2
CL_Surface * gui_edge3
CL_Surface * gui_edge4
CL_Surface * gui_border1
CL_Surface * gui_border2
CL_Surface * gui_border3
CL_Surface * gui_border4
CL_Surface * gui_button
CL_Surface * gui_arrow_l
CL_Surface * gui_arrow_r
CL_Surface * gui_arrow_t
CL_Surface * gui_arrow_b
CL_SoundBuffer * sound_horn
CL_SoundBuffer * sound_menu
CL_SoundBuffer * sound_selector
CL_SoundBuffer * sound_slide
CL_SoundBuffer * sound_crash
CL_SoundBuffer * sound_engine
CL_SoundBuffer * sound_light
CL_SoundBuffer * sound_goody_money
CL_SoundBuffer * sound_goody_bullets
CL_SoundBuffer * sound_goody_turbo
CL_SoundBuffer * sound_goody_fogbomb
CL_SoundBuffer * sound_goody_life
CL_SoundBuffer * sound_shoot
CL_SoundBuffer * sound_fogbomb
CL_SoundBuffer * sound_fire
CL_SoundBuffer * sound_background01
CASoundEffecteffectCrash
CASoundEffecteffectSlide
CASoundEffecteffectEngine
CASoundEffecteffectHorn
CASoundEffecteffectLight
CASoundEffecteffectMenu
CASoundEffecteffectSelector
CASoundEffecteffectGoodyMoney
CASoundEffecteffectGoodyBullets
CASoundEffecteffectGoodyTurbo
CASoundEffecteffectGoodyFogbomb
CASoundEffecteffectGoodyLife
CASoundEffecteffectShoot
CASoundEffecteffectFogBomb
CASoundEffecteffectFire
CASoundEffecteffectBackground01

Protected Member Functions

 CAResources ()
 Constructor.
void load ()
 Load all resources.


Detailed Description

Offers global access to all resources.

This way we avoid double loading of resources.

Author:
Andrew Mustun


Member Function Documentation

CAResources * CAResources::getResources (  )  [static]

Gets the one and only Resources-Object.

Creates a new one on first call.

bool CAResources::advanceAnimation ( float *  frameCounter,
CL_Surface *  surface,
float  fps,
AnimationMode  mode = Forward 
) [static]

Updates the frameCounter for the given surface so it shows fps frames per second.

Returns:
true if the zero frame was passed during animation. Otherwise false.


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 06:48:29 2006 by  doxygen 1.5.0