OpenMW
Public Member Functions | Private Member Functions | Private Attributes
MWGui::HUD Class Reference

#include <hud.hpp>

List of all members.

Public Member Functions

 HUD (int width, int height, int fpsLevel, DragAndDrop *dragAndDrop)
virtual ~HUD ()
void setValue (const std::string &id, const MWMechanics::DynamicStat< float > &value)
void setFPS (float fps)
void setTriangleCount (unsigned int count)
void setBatchCount (unsigned int count)
void setDrowningTimeLeft (float time)
void setDrowningBarVisible (bool visible)
void setHmsVisible (bool visible)
void setWeapVisible (bool visible)
void setSpellVisible (bool visible)
void setSneakVisible (bool visible)
void setEffectVisible (bool visible)
void setMinimapVisible (bool visible)
void setFpsLevel (const int level)
void setSelectedSpell (const std::string &spellId, int successChancePercent)
void setSelectedEnchantItem (const MWWorld::Ptr &item, int chargePercent)
void setSelectedWeapon (const MWWorld::Ptr &item, int durabilityPercent)
void unsetSelectedSpell ()
void unsetSelectedWeapon ()
void setCrosshairVisible (bool visible)
void onFrame (float dt)
void onResChange (int width, int height)
void setCellName (const std::string &cellName)
bool getWorldMouseOver ()
MyGUI::Widget * getEffectBox ()
void update ()
void setEnemy (const MWWorld::Ptr &enemy)

Private Member Functions

void onWorldClicked (MyGUI::Widget *_sender)
void onWorldMouseOver (MyGUI::Widget *_sender, int x, int y)
void onWorldMouseLostFocus (MyGUI::Widget *_sender, MyGUI::Widget *_new)
void onHMSClicked (MyGUI::Widget *_sender)
void onWeaponClicked (MyGUI::Widget *_sender)
void onMagicClicked (MyGUI::Widget *_sender)
void onMapClicked (MyGUI::Widget *_sender)
void updatePositions ()

Private Attributes

MyGUI::ProgressBar * mHealth
MyGUI::ProgressBar * mMagicka
MyGUI::ProgressBar * mStamina
MyGUI::ProgressBar * mEnemyHealth
MyGUI::ProgressBar * mDrowning
MyGUI::Widget * mHealthFrame
MyGUI::Widget * mWeapBox
MyGUI::Widget * mSpellBox
MyGUI::Widget * mSneakBox
MyGUI::ImageBox * mWeapImage
MyGUI::ImageBox * mSpellImage
MyGUI::ProgressBar * mWeapStatus
MyGUI::ProgressBar * mSpellStatus
MyGUI::Widget * mEffectBox
MyGUI::Widget * mMinimapBox
MyGUI::Button * mMinimapButton
MyGUI::ScrollView * mMinimap
MyGUI::ImageBox * mCompass
MyGUI::ImageBox * mCrosshair
MyGUI::TextBox * mCellNameBox
MyGUI::TextBox * mWeaponSpellBox
MyGUI::Widget * mDrowningFrame
MyGUI::Widget * mDrowningFlash
MyGUI::Widget * mDummy
MyGUI::Widget * mFpsBox
MyGUI::TextBox * mFpsCounter
MyGUI::TextBox * mTriangleCounter
MyGUI::TextBox * mBatchCounter
int mHealthManaStaminaBaseLeft
int mWeapBoxBaseLeft
int mSpellBoxBaseLeft
int mSneakBoxBaseLeft
int mMinimapBoxBaseRight
int mEffectBoxBaseRight
DragAndDropmDragAndDrop
std::string mCellName
float mCellNameTimer
std::string mWeaponName
std::string mSpellName
float mWeaponSpellTimer
bool mMapVisible
bool mWeaponVisible
bool mSpellVisible
bool mWorldMouseOver
SpellIconsmSpellIcons
MWWorld::Ptr mEnemy
float mEnemyHealthTimer
bool mIsDrowning
float mDrowningFlashTheta

Constructor & Destructor Documentation

MWGui::HUD::HUD ( int  width,
int  height,
int  fpsLevel,
DragAndDrop dragAndDrop 
)
MWGui::HUD::~HUD ( ) [virtual]

Member Function Documentation

MyGUI::Widget* MWGui::HUD::getEffectBox ( ) [inline]
bool MWGui::HUD::getWorldMouseOver ( ) [inline]
void MWGui::HUD::onFrame ( float  dt)
void MWGui::HUD::onHMSClicked ( MyGUI::Widget *  _sender) [private]
void MWGui::HUD::onMagicClicked ( MyGUI::Widget *  _sender) [private]
void MWGui::HUD::onMapClicked ( MyGUI::Widget *  _sender) [private]
void MWGui::HUD::onResChange ( int  width,
int  height 
)
void MWGui::HUD::onWeaponClicked ( MyGUI::Widget *  _sender) [private]
void MWGui::HUD::onWorldClicked ( MyGUI::Widget *  _sender) [private]
void MWGui::HUD::onWorldMouseLostFocus ( MyGUI::Widget *  _sender,
MyGUI::Widget *  _new 
) [private]
void MWGui::HUD::onWorldMouseOver ( MyGUI::Widget *  _sender,
int  x,
int  y 
) [private]
void MWGui::HUD::setBatchCount ( unsigned int  count)
void MWGui::HUD::setCellName ( const std::string &  cellName)
void MWGui::HUD::setCrosshairVisible ( bool  visible)
void MWGui::HUD::setDrowningBarVisible ( bool  visible)
void MWGui::HUD::setDrowningTimeLeft ( float  time)

Set time left for the player to start drowning

Parameters:
timevalue from [0,20]
void MWGui::HUD::setEffectVisible ( bool  visible)
void MWGui::HUD::setEnemy ( const MWWorld::Ptr enemy)
void MWGui::HUD::setFPS ( float  fps)
void MWGui::HUD::setFpsLevel ( const int  level)
void MWGui::HUD::setHmsVisible ( bool  visible)
void MWGui::HUD::setMinimapVisible ( bool  visible)
void MWGui::HUD::setSelectedEnchantItem ( const MWWorld::Ptr item,
int  chargePercent 
)
void MWGui::HUD::setSelectedSpell ( const std::string &  spellId,
int  successChancePercent 
)
void MWGui::HUD::setSelectedWeapon ( const MWWorld::Ptr item,
int  durabilityPercent 
)
void MWGui::HUD::setSneakVisible ( bool  visible)
void MWGui::HUD::setSpellVisible ( bool  visible)
void MWGui::HUD::setTriangleCount ( unsigned int  count)
void MWGui::HUD::setValue ( const std::string &  id,
const MWMechanics::DynamicStat< float > &  value 
)
void MWGui::HUD::setWeapVisible ( bool  visible)
void MWGui::HUD::updatePositions ( ) [private]

Member Data Documentation

MyGUI::TextBox* MWGui::HUD::mBatchCounter [private]
std::string MWGui::HUD::mCellName [private]
MyGUI::TextBox* MWGui::HUD::mCellNameBox [private]
float MWGui::HUD::mCellNameTimer [private]
MyGUI::ImageBox* MWGui::HUD::mCompass [private]

Reimplemented from MWGui::LocalMapBase.

MyGUI::ImageBox* MWGui::HUD::mCrosshair [private]
MyGUI::ProgressBar * MWGui::HUD::mDrowning [private]
MyGUI::Widget * MWGui::HUD::mDrowningFlash [private]
MyGUI::Widget* MWGui::HUD::mDrowningFrame [private]
MyGUI::Widget* MWGui::HUD::mDummy [private]
MyGUI::Widget* MWGui::HUD::mEffectBox [private]
MyGUI::ProgressBar * MWGui::HUD::mEnemyHealth [private]
MyGUI::Widget* MWGui::HUD::mFpsBox [private]
MyGUI::TextBox* MWGui::HUD::mFpsCounter [private]
MyGUI::ProgressBar* MWGui::HUD::mHealth [private]
MyGUI::Widget* MWGui::HUD::mHealthFrame [private]
bool MWGui::HUD::mIsDrowning [private]
MyGUI::ProgressBar * MWGui::HUD::mMagicka [private]
bool MWGui::HUD::mMapVisible [private]
MyGUI::ScrollView* MWGui::HUD::mMinimap [private]
MyGUI::Widget * MWGui::HUD::mMinimapBox [private]
MyGUI::Button* MWGui::HUD::mMinimapButton [private]
MyGUI::Widget * MWGui::HUD::mSneakBox [private]
MyGUI::Widget * MWGui::HUD::mSpellBox [private]
MyGUI::ImageBox * MWGui::HUD::mSpellImage [private]
std::string MWGui::HUD::mSpellName [private]
MyGUI::ProgressBar * MWGui::HUD::mSpellStatus [private]
bool MWGui::HUD::mSpellVisible [private]
MyGUI::ProgressBar * MWGui::HUD::mStamina [private]
MyGUI::TextBox* MWGui::HUD::mTriangleCounter [private]
MyGUI::Widget* MWGui::HUD::mWeapBox [private]
MyGUI::ImageBox* MWGui::HUD::mWeapImage [private]
std::string MWGui::HUD::mWeaponName [private]
MyGUI::TextBox* MWGui::HUD::mWeaponSpellBox [private]
MyGUI::ProgressBar* MWGui::HUD::mWeapStatus [private]

The documentation for this class was generated from the following files: