StatusWindow Class Reference
[User interface related classes (windows, dialogs)]

#include <status.h>

Inheritance diagram for StatusWindow:

Window Window

List of all members.


Detailed Description

The player status dialog.

Definition at line 37 of file status.h.


Public Member Functions

 StatusWindow (LocalPlayer *player)
 Constructor.
void action (const gcn::ActionEvent &event)
 Called when receiving actions from widget.
void draw (gcn::Graphics *graphics)
 Draw this window.
void update ()
 Updates this dialog with values from PLAYER_INFO *char_info.
 StatusWindow (LocalPlayer *player)
 Constructor.
void action (const gcn::ActionEvent &event)
 Called when receiving actions from widget.
void draw (gcn::Graphics *graphics)
 Draw this window.
void update ()
 Updates this dialog with values from PLAYER_INFO *char_info.

Static Public Member Functions

static void updateHPBar (ProgressBar *bar, bool showMax=false)
static void updateMPBar (ProgressBar *bar, bool showMax=false)
static void updateXPBar (ProgressBar *bar, bool percent=true)
static void updateJobBar (ProgressBar *bar, bool percent=true)
static void updateHPBar (ProgressBar *bar, bool showMax=false)

Private Attributes

LocalPlayermPlayer
gcn::Label * mLvlLabel
 Status Part.
gcn::Label * mJobLvlLabel
gcn::Label * mGpLabel
int mCurrency
gcn::Label * mHpLabel
gcn::Label * mMpLabel
gcn::Label * mXpLabel
gcn::Label * mJobLabel
ProgressBarmHpBar
ProgressBarmMpBar
ProgressBarmXpBar
ProgressBarmJobBar
gcn::Label * mStatsAttackLabel
 Derived Statistics captions.
gcn::Label * mStatsDefenseLabel
gcn::Label * mStatsMagicAttackLabel
gcn::Label * mStatsMagicDefenseLabel
gcn::Label * mStatsAccuracyLabel
gcn::Label * mStatsEvadeLabel
gcn::Label * mStatsReflexLabel
gcn::Label * mStatsAttackPoints
gcn::Label * mStatsDefensePoints
gcn::Label * mStatsMagicAttackPoints
gcn::Label * mStatsMagicDefensePoints
gcn::Label * mStatsAccuracyPoints
gcn::Label * mStatsEvadePoints
gcn::Label * mStatsReflexPoints
gcn::Label * mStatsLabel [6]
 Stats captions.
gcn::Label * mPointsLabel [6]
gcn::Label * mStatsDisplayLabel [6]
gcn::Label * mRemainingStatsPointsLabel
gcn::Button * mStatsButton [6]
 Stats buttons.
LocalPlayermPlayer
gcn::Label * mLvlLabel
 Status Part.
gcn::Label * mMoneyLabel
gcn::Label * mHpValueLabel
ProgressBarmHpBar
gcn::Label * mStatsLabel [6]
 Derived Statistics captions.
gcn::Label * mStatsDisplayLabel [6]
gcn::Label * mCharacterPointsLabel
gcn::Label * mCorrectionPointsLabel
gcn::Button * mStatsPlus [6]
 Stats buttons.
gcn::Button * mStatsMinus [6]

Constructor & Destructor Documentation

StatusWindow::StatusWindow ( LocalPlayer player  ) 

Constructor.

Definition at line 42 of file status.cpp.

StatusWindow::StatusWindow ( LocalPlayer player  ) 

Constructor.


Member Function Documentation

void StatusWindow::action ( const gcn::ActionEvent &  event  ) 

Called when receiving actions from widget.

Definition at line 267 of file status.cpp.

void StatusWindow::draw ( gcn::Graphics *  graphics  ) 

Draw this window.

Reimplemented from Window.

Definition at line 260 of file status.cpp.

void StatusWindow::update (  ) 

Updates this dialog with values from PLAYER_INFO *char_info.

Definition at line 171 of file status.cpp.

void StatusWindow::updateHPBar ( ProgressBar bar,
bool  showMax = false 
) [static]

Definition at line 288 of file status.cpp.

void StatusWindow::updateMPBar ( ProgressBar bar,
bool  showMax = false 
) [static]

Definition at line 364 of file status.cpp.

void StatusWindow::updateXPBar ( ProgressBar bar,
bool  percent = true 
) [static]

Definition at line 380 of file status.cpp.

void StatusWindow::updateJobBar ( ProgressBar bar,
bool  percent = true 
) [static]

Definition at line 402 of file status.cpp.

void StatusWindow::action ( const gcn::ActionEvent &  event  ) 

Called when receiving actions from widget.

void StatusWindow::draw ( gcn::Graphics *  graphics  ) 

Draw this window.

Reimplemented from Window.

void StatusWindow::update (  ) 

Updates this dialog with values from PLAYER_INFO *char_info.

static void StatusWindow::updateHPBar ( ProgressBar bar,
bool  showMax = false 
) [static]


Member Data Documentation

Definition at line 66 of file status.h.

gcn::Label* StatusWindow::mLvlLabel [private]

Status Part.

Definition at line 71 of file status.h.

gcn::Label * StatusWindow::mJobLvlLabel [private]

Definition at line 71 of file status.h.

gcn::Label* StatusWindow::mGpLabel [private]

Definition at line 72 of file status.h.

int StatusWindow::mCurrency [private]

Definition at line 73 of file status.h.

gcn::Label * StatusWindow::mHpLabel [private]

Definition at line 74 of file status.h.

gcn::Label * StatusWindow::mMpLabel [private]

Definition at line 74 of file status.h.

gcn::Label * StatusWindow::mXpLabel [private]

Definition at line 74 of file status.h.

gcn::Label * StatusWindow::mJobLabel [private]

Definition at line 74 of file status.h.

Definition at line 75 of file status.h.

Definition at line 75 of file status.h.

Definition at line 76 of file status.h.

Definition at line 76 of file status.h.

gcn::Label* StatusWindow::mStatsAttackLabel [private]

Derived Statistics captions.

Definition at line 81 of file status.h.

gcn::Label * StatusWindow::mStatsDefenseLabel [private]

Definition at line 81 of file status.h.

gcn::Label* StatusWindow::mStatsMagicAttackLabel [private]

Definition at line 82 of file status.h.

gcn::Label * StatusWindow::mStatsMagicDefenseLabel [private]

Definition at line 82 of file status.h.

gcn::Label* StatusWindow::mStatsAccuracyLabel [private]

Definition at line 83 of file status.h.

gcn::Label * StatusWindow::mStatsEvadeLabel [private]

Definition at line 83 of file status.h.

gcn::Label* StatusWindow::mStatsReflexLabel [private]

Definition at line 84 of file status.h.

gcn::Label* StatusWindow::mStatsAttackPoints [private]

Definition at line 86 of file status.h.

gcn::Label * StatusWindow::mStatsDefensePoints [private]

Definition at line 86 of file status.h.

Definition at line 87 of file status.h.

Definition at line 87 of file status.h.

gcn::Label* StatusWindow::mStatsAccuracyPoints [private]

Definition at line 88 of file status.h.

gcn::Label * StatusWindow::mStatsEvadePoints [private]

Definition at line 88 of file status.h.

gcn::Label* StatusWindow::mStatsReflexPoints [private]

Definition at line 89 of file status.h.

gcn::Label* StatusWindow::mStatsLabel[6] [private]

Stats captions.

Definition at line 94 of file status.h.

gcn::Label* StatusWindow::mPointsLabel[6] [private]

Definition at line 95 of file status.h.

gcn::Label* StatusWindow::mStatsDisplayLabel[6] [private]

Definition at line 96 of file status.h.

Definition at line 97 of file status.h.

gcn::Button* StatusWindow::mStatsButton[6] [private]

Stats buttons.

Definition at line 102 of file status.h.

Definition at line 65 of file statuswindow.h.

gcn::Label* StatusWindow::mLvlLabel [private]

Status Part.

Definition at line 70 of file statuswindow.h.

gcn::Label * StatusWindow::mMoneyLabel [private]

Definition at line 70 of file statuswindow.h.

gcn::Label * StatusWindow::mHpValueLabel [private]

Definition at line 70 of file statuswindow.h.

Definition at line 71 of file statuswindow.h.

gcn::Label* StatusWindow::mStatsLabel[6] [private]

Derived Statistics captions.

Stats captions.

Definition at line 90 of file statuswindow.h.

gcn::Label* StatusWindow::mStatsDisplayLabel[6] [private]

Definition at line 91 of file statuswindow.h.

gcn::Label* StatusWindow::mCharacterPointsLabel [private]

Definition at line 92 of file statuswindow.h.

gcn::Label* StatusWindow::mCorrectionPointsLabel [private]

Definition at line 93 of file statuswindow.h.

gcn::Button* StatusWindow::mStatsPlus[6] [private]

Stats buttons.

Definition at line 98 of file statuswindow.h.

gcn::Button* StatusWindow::mStatsMinus[6] [private]

Definition at line 99 of file statuswindow.h.


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

Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5