Crazy Eddie's GUI System  ${CEGUI_VERSION}
HUDDemo Class Reference
+ Inheritance diagram for HUDDemo:
+ Collaboration diagram for HUDDemo:

Public Member Functions

virtual bool initialise (CEGUI::GUIContext *guiContext)
 
void initGame ()
 
void setupMouseCursor ()
 
virtual void deinitialise ()
 
virtual void onEnteringSample ()
 
virtual void update (float timeSinceLastUpdate)
 
CEGUI::WindowspawnPlate ()
 
- Public Member Functions inherited from Sample
const CEGUI::StringgetUsedFilesString ()
 

Static Public Attributes

static const CEGUI::String s_imageNamePlate = "HUDDemo/Plate"
 
static const CEGUI::String s_imageNameBread = "HUDDemo/Bread"
 
static const CEGUI::String s_imageNamePoo = "HUDDemo/Poo"
 
static const CEGUI::String s_imageNamePrizza = "HUDDemo/Prizza"
 
static const CEGUI::String s_imageNameSteak = "HUDDemo/Steak"
 
static const CEGUI::String s_imageNameVegPeople = "HUDDemo/VegetablePeople"
 
static const CEGUI::String s_imageNameVegFruits = "HUDDemo/VegetablesAndFruits"
 

Protected Member Functions

void updateMouseCursor ()
 
void updatePlates (float timeSinceLastUpdate)
 
bool handlePlateWindowClicked (const CEGUI::EventArgs &args)
 
bool handleScorePopupAnimationEnded (const CEGUI::EventArgs &args)
 
bool handleWeaponLeftArrowClicked (const CEGUI::EventArgs &args)
 
bool handleWeaponRightArrowClicked (const CEGUI::EventArgs &args)
 
bool handleRestartButtonClicked (const CEGUI::EventArgs &args)
 
void updateScoreWindow ()
 
void createScorePopup (const CEGUI::Vector2< float > &mousePos, int points)
 
void handleLivesChanged ()
 
void delayDestroyWindows ()
 
void selectedWeapon (SelectedWeapon weapon)
 

Static Protected Member Functions

static const CEGUI::StringgetRandomGameImage ()
 

Protected Attributes

CEGUI::GUIContextd_guiContext
 
CEGUI::Windowd_root
 
CEGUI::Windowd_rootIngame
 
CEGUI::Windowd_rootGameOver
 
CEGUI::Windowd_mouseCursorWnd
 
int d_score
 
std::vector< GamePlate * > d_gamePlates
 
std::vector< CEGUI::Window * > d_delayDestroyWindows
 
CEGUI::ProgressBard_lifeBar
 
int d_lives
 
SelectedWeapon d_selectedWeapon
 
- Protected Attributes inherited from Sample
CEGUI::String d_usedFiles