|
Planeshift
|
This handles all the details about how the skill window. More...
#include <pawsskillwindow.h>
Classes | |
| struct | FactionRating |
| struct | pawsSkill |
Public Member Functions | |
| virtual void | Close () |
| Simply calls Hide() unless overidden. | |
| virtual void | Draw () |
| Draws the widget and all of it's children. | |
| float | GetHPDangerLevel () |
| float | GetHPFlashLevel () |
| float | GetHPWarnLevel () |
| float | GetManaDangerLevel () |
| float | GetManaFlashLevel () |
| float | GetManaWarnLevel () |
| virtual void | HandleMessage (MsgEntry *msg) |
| virtual void | Hide () |
| When the window is closed let the controller window know about it. | |
| bool | LoadUserSharedPrefs () |
| Load the preferences set by the Shortcut Configuration interface. | |
| bool | OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *widget) |
| Called whenever a button is pressed. | |
| void | OnListAction (pawsListBox *listbox, int status) |
| Called whenever an item in a child list box is selected. | |
| virtual void | OnNumberEntered (const char *name, int param, int number) |
| pawsSkillWindow () | |
| pawsSkillWindow (const pawsSkillWindow &origin) | |
| TODO: Copy constructor, useless currently. Would be implemented later. | |
| bool | PostSetup () |
| This is called after the widget and all of it's children have been created. | |
| void | SetHPDangerLevel (float val) |
| void | SetHPFlashLevel (float val) |
| void | SetHPOn (bool val) |
| void | SetHPWarnLevel (float val) |
| void | SetManaDangerLevel (float val) |
| void | SetManaFlashLevel (float val) |
| void | SetManaOn (bool val) |
| void | SetManaWarnLevel (float val) |
| virtual void | Show () |
| When the window is opened let the controller window know about it. | |
| virtual | ~pawsSkillWindow () |
Protected Types | |
| enum | { CAT_STATS, CAT_COMBAT, CAT_MAGIC, CAT_JOBS, CAT_VARIOUS, CAT_FACTION } |
Protected Member Functions | |
| void | BuyMaxSkill () |
| void | BuySkill () |
| void | FlashTabButton (const char *buttonName, bool flash) |
| This method is used for making the tab button blinking. | |
| void | HandleFactionMsg (MsgEntry *me) |
| void | HandleSkillCategory (psSkillCacheItem *skillInfo, unsigned &idx, bool flush) |
| This handles the skill list for each category. | |
| void | HandleSkillDescription (csString &description) |
| void | HandleSkillList (int selectedNameId, bool flush) |
| bool | SetupDoll () |
Protected Attributes | |
| psCharAppearance * | charApp |
| int | currentTab |
| pawsProgressBar * | experienceBar |
| pawsTextBox * | experiencePerc |
| pawsListBox * | factionList |
| csPDelArray< FactionRating > | factions |
| The factions by name. | |
| pawsMultiLineTextBox * | factionsDescription |
| bool | factRequest |
| Flag if we have sent our initial request for faction information. Only sent once and everything else is an update. | |
| bool | filter |
| int | hitpointsMax |
| pawsProgressBar * | hpBar |
| pawsTextBox * | hpFrac |
| pawsProgressBar * | manaBar |
| pawsTextBox * | manaFrac |
| int | manaMax |
| pawsProgressBar * | menStaminaBar |
| pawsTextBox * | menStaminaFrac |
| int | menStaminaMax |
| int | physStaminaMax |
| int | previousTab |
| Used for storing which is the current tab and the previous one. | |
| pawsProgressBar * | pysStaminaBar |
| pawsTextBox * | pysStaminaFrac |
| csString | selectedSkill |
| psSkillCache | skillCache |
| Local copy of skills and stats. | |
| csHash< psSkillDescription * > | skillDescriptions |
| Local copy of skill and stat descriptions. | |
| pawsSkill | skills [5] |
| csString | skillString |
| bool | train |
| unsigned int | x |
| Stores topnode "X" information (progression points) | |
| csRef< iDocumentSystem > | xml |
This handles all the details about how the skill window.
Definition at line 78 of file pawsskillwindow.h.
anonymous enum [protected] |
Definition at line 125 of file pawsskillwindow.h.
| pawsSkillWindow::pawsSkillWindow | ( | ) |
| pawsSkillWindow::pawsSkillWindow | ( | const pawsSkillWindow & | origin | ) |
TODO: Copy constructor, useless currently. Would be implemented later.
| virtual pawsSkillWindow::~pawsSkillWindow | ( | ) | [virtual] |
| void pawsSkillWindow::BuyMaxSkill | ( | ) | [protected] |
| void pawsSkillWindow::BuySkill | ( | ) | [protected] |
| virtual void pawsSkillWindow::Close | ( | ) | [virtual] |
Simply calls Hide() unless overidden.
Reimplemented from pawsWidget.
| virtual void pawsSkillWindow::Draw | ( | ) | [virtual] |
Draws the widget and all of it's children.
Reimplemented from pawsWidget.
| void pawsSkillWindow::FlashTabButton | ( | const char * | buttonName, |
| bool | flash | ||
| ) | [protected] |
This method is used for making the tab button blinking.
It is used while training: a trainer can train skills in a certain category, so with the flashing of the tab (the category) the player knows that a certain skill is available to be trained
| float pawsSkillWindow::GetHPDangerLevel | ( | ) |
| float pawsSkillWindow::GetHPFlashLevel | ( | ) |
| float pawsSkillWindow::GetHPWarnLevel | ( | ) |
| float pawsSkillWindow::GetManaDangerLevel | ( | ) |
| float pawsSkillWindow::GetManaFlashLevel | ( | ) |
| float pawsSkillWindow::GetManaWarnLevel | ( | ) |
| void pawsSkillWindow::HandleFactionMsg | ( | MsgEntry * | me | ) | [protected] |
| virtual void pawsSkillWindow::HandleMessage | ( | MsgEntry * | msg | ) | [virtual] |
Implements psClientNetSubscriber.
| void pawsSkillWindow::HandleSkillCategory | ( | psSkillCacheItem * | skillInfo, |
| unsigned & | idx, | ||
| bool | flush | ||
| ) | [protected] |
This handles the skill list for each category.
| void pawsSkillWindow::HandleSkillDescription | ( | csString & | description | ) | [protected] |
| void pawsSkillWindow::HandleSkillList | ( | int | selectedNameId, |
| bool | flush | ||
| ) | [protected] |
| virtual void pawsSkillWindow::Hide | ( | ) | [virtual] |
When the window is closed let the controller window know about it.
Reimplemented from pawsControlledWindow.
| bool pawsSkillWindow::LoadUserSharedPrefs | ( | ) |
Load the preferences set by the Shortcut Configuration interface.
| bool pawsSkillWindow::OnButtonPressed | ( | int | button, |
| int | keyModifier, | ||
| pawsWidget * | widget | ||
| ) | [virtual] |
Called whenever a button is pressed.
| button | The button pressed. |
| keyModifier | Modifier key in effect. |
| widget | The widget the button belongs to. |
Reimplemented from pawsWidget.
| void pawsSkillWindow::OnListAction | ( | pawsListBox * | selected, |
| int | status | ||
| ) | [virtual] |
Called whenever an item in a child list box is selected.
| selected | The listbox that has the item selected. |
| status | From listbox when a row is selected. |
Reimplemented from pawsWidget.
| virtual void pawsSkillWindow::OnNumberEntered | ( | const char * | name, |
| int | param, | ||
| int | number | ||
| ) | [virtual] |
Implements iOnNumberEnteredAction.
| bool pawsSkillWindow::PostSetup | ( | ) | [virtual] |
This is called after the widget and all of it's children have been created.
Reimplemented from pawsWidget.
| void pawsSkillWindow::SetHPDangerLevel | ( | float | val | ) |
| void pawsSkillWindow::SetHPFlashLevel | ( | float | val | ) |
| void pawsSkillWindow::SetHPOn | ( | bool | val | ) |
| void pawsSkillWindow::SetHPWarnLevel | ( | float | val | ) |
| void pawsSkillWindow::SetManaDangerLevel | ( | float | val | ) |
| void pawsSkillWindow::SetManaFlashLevel | ( | float | val | ) |
| void pawsSkillWindow::SetManaOn | ( | bool | val | ) |
| void pawsSkillWindow::SetManaWarnLevel | ( | float | val | ) |
| bool pawsSkillWindow::SetupDoll | ( | ) | [protected] |
| virtual void pawsSkillWindow::Show | ( | void | ) | [virtual] |
When the window is opened let the controller window know about it.
Reimplemented from pawsControlledWindow.
psCharAppearance* pawsSkillWindow::charApp [protected] |
Definition at line 196 of file pawsskillwindow.h.
int pawsSkillWindow::currentTab [protected] |
Definition at line 175 of file pawsskillwindow.h.
pawsProgressBar * pawsSkillWindow::experienceBar [protected] |
Definition at line 164 of file pawsskillwindow.h.
pawsTextBox * pawsSkillWindow::experiencePerc [protected] |
Definition at line 165 of file pawsskillwindow.h.
pawsListBox* pawsSkillWindow::factionList [protected] |
Definition at line 162 of file pawsskillwindow.h.
csPDelArray<FactionRating> pawsSkillWindow::factions [protected] |
The factions by name.
Definition at line 191 of file pawsskillwindow.h.
pawsMultiLineTextBox* pawsSkillWindow::factionsDescription [protected] |
Definition at line 163 of file pawsskillwindow.h.
bool pawsSkillWindow::factRequest [protected] |
Flag if we have sent our initial request for faction information. Only sent once and everything else is an update.
Definition at line 195 of file pawsskillwindow.h.
bool pawsSkillWindow::filter [protected] |
Definition at line 167 of file pawsskillwindow.h.
int pawsSkillWindow::hitpointsMax [protected] |
Definition at line 173 of file pawsskillwindow.h.
pawsProgressBar* pawsSkillWindow::hpBar [protected] |
Definition at line 164 of file pawsskillwindow.h.
pawsTextBox* pawsSkillWindow::hpFrac [protected] |
Definition at line 165 of file pawsskillwindow.h.
pawsProgressBar * pawsSkillWindow::manaBar [protected] |
Definition at line 164 of file pawsskillwindow.h.
pawsTextBox * pawsSkillWindow::manaFrac [protected] |
Definition at line 165 of file pawsskillwindow.h.
int pawsSkillWindow::manaMax [protected] |
Definition at line 173 of file pawsskillwindow.h.
pawsProgressBar * pawsSkillWindow::menStaminaBar [protected] |
Definition at line 164 of file pawsskillwindow.h.
pawsTextBox * pawsSkillWindow::menStaminaFrac [protected] |
Definition at line 165 of file pawsskillwindow.h.
int pawsSkillWindow::menStaminaMax [protected] |
Definition at line 173 of file pawsskillwindow.h.
int pawsSkillWindow::physStaminaMax [protected] |
Definition at line 173 of file pawsskillwindow.h.
int pawsSkillWindow::previousTab [protected] |
Used for storing which is the current tab and the previous one.
Definition at line 175 of file pawsskillwindow.h.
pawsProgressBar * pawsSkillWindow::pysStaminaBar [protected] |
Definition at line 164 of file pawsskillwindow.h.
pawsTextBox * pawsSkillWindow::pysStaminaFrac [protected] |
Definition at line 165 of file pawsskillwindow.h.
csString pawsSkillWindow::selectedSkill [protected] |
Definition at line 171 of file pawsskillwindow.h.
psSkillCache pawsSkillWindow::skillCache [protected] |
Local copy of skills and stats.
Definition at line 179 of file pawsskillwindow.h.
csHash<psSkillDescription *> pawsSkillWindow::skillDescriptions [protected] |
Local copy of skill and stat descriptions.
Definition at line 180 of file pawsskillwindow.h.
pawsSkill pawsSkillWindow::skills[5] [protected] |
Definition at line 161 of file pawsskillwindow.h.
csString pawsSkillWindow::skillString [protected] |
Definition at line 170 of file pawsskillwindow.h.
bool pawsSkillWindow::train [protected] |
Definition at line 167 of file pawsskillwindow.h.
unsigned int pawsSkillWindow::x [protected] |
Stores topnode "X" information (progression points)
Definition at line 168 of file pawsskillwindow.h.
csRef<iDocumentSystem> pawsSkillWindow::xml [protected] |
Definition at line 177 of file pawsskillwindow.h.
1.7.3