Planeshift
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

pawsSkillWindow Class Reference

This handles all the details about how the skill window. More...

#include <pawsskillwindow.h>

List of all members.

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

psCharAppearancecharApp
int currentTab
pawsProgressBarexperienceBar
pawsTextBoxexperiencePerc
pawsListBoxfactionList
csPDelArray< FactionRatingfactions
 The factions by name.
pawsMultiLineTextBoxfactionsDescription
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
pawsProgressBarhpBar
pawsTextBoxhpFrac
pawsProgressBarmanaBar
pawsTextBoxmanaFrac
int manaMax
pawsProgressBarmenStaminaBar
pawsTextBoxmenStaminaFrac
int menStaminaMax
int physStaminaMax
int previousTab
 Used for storing which is the current tab and the previous one.
pawsProgressBarpysStaminaBar
pawsTextBoxpysStaminaFrac
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

Detailed Description

This handles all the details about how the skill window.

Definition at line 78 of file pawsskillwindow.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
CAT_STATS 
CAT_COMBAT 
CAT_MAGIC 
CAT_JOBS 
CAT_VARIOUS 
CAT_FACTION 

Definition at line 125 of file pawsskillwindow.h.


Constructor & Destructor Documentation

pawsSkillWindow::pawsSkillWindow ( )
pawsSkillWindow::pawsSkillWindow ( const pawsSkillWindow origin)

TODO: Copy constructor, useless currently. Would be implemented later.

virtual pawsSkillWindow::~pawsSkillWindow ( ) [virtual]

Member Function Documentation

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.

Remarks:
Uses clipping rect of it's parent to define drawing area. If the drawing area defined is empty it returns.

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.

Parameters:
buttonThe button pressed.
keyModifierModifier key in effect.
widgetThe widget the button belongs to.
Returns:
bool Parent's result or FALSE if no parent.

Reimplemented from pawsWidget.

void pawsSkillWindow::OnListAction ( pawsListBox selected,
int  status 
) [virtual]

Called whenever an item in a child list box is selected.

Parameters:
selectedThe listbox that has the item selected.
statusFrom listbox when a row is selected.

Reimplemented from pawsWidget.

virtual void pawsSkillWindow::OnNumberEntered ( const char *  name,
int  param,
int  number 
) [virtual]
bool pawsSkillWindow::PostSetup ( ) [virtual]

This is called after the widget and all of it's children have been created.

Remarks:
This can be useful for widgets that want to get pointers to some of it's children for quick access.

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.


Member Data Documentation

Definition at line 196 of file pawsskillwindow.h.

Definition at line 175 of file pawsskillwindow.h.

Definition at line 164 of file pawsskillwindow.h.

Definition at line 165 of file pawsskillwindow.h.

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.

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.

Definition at line 173 of file pawsskillwindow.h.

Definition at line 164 of file pawsskillwindow.h.

Definition at line 165 of file pawsskillwindow.h.

Definition at line 164 of file pawsskillwindow.h.

Definition at line 165 of file pawsskillwindow.h.

Definition at line 173 of file pawsskillwindow.h.

Definition at line 164 of file pawsskillwindow.h.

Definition at line 165 of file pawsskillwindow.h.

Definition at line 173 of file pawsskillwindow.h.

Definition at line 173 of file pawsskillwindow.h.

Used for storing which is the current tab and the previous one.

Definition at line 175 of file pawsskillwindow.h.

Definition at line 164 of file pawsskillwindow.h.

Definition at line 165 of file pawsskillwindow.h.

csString pawsSkillWindow::selectedSkill [protected]

Definition at line 171 of file pawsskillwindow.h.

Local copy of skills and stats.

Definition at line 179 of file pawsskillwindow.h.

Local copy of skill and stat descriptions.

Definition at line 180 of file pawsskillwindow.h.

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.

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.


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