Planeshift
pawspetstatwindow.h
Go to the documentation of this file.
1 /*
2  * pawsskillwindow.h
3  *
4  * Copyright (C) 2003 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 #ifndef PAWS_PET_STAT_WINDOW_HEADER
21 #define PAWS_PET_STAT_WINDOW_HEADER
22 
23 #include "paws/pawswidget.h"
24 class pawsTextBox;
25 class pawsListBox;
26 class pawsListBoxRow;
28 class pawsProgressBar;
29 class pawsObjectView;
30 class psCharAppearance;
31 
32 #include "net/cmdbase.h"
33 #include "gui/pawscontrolwindow.h"
34 
38 {
39 public:
40 
42  virtual ~pawsPetStatWindow();
43 
44  bool PostSetup();
45  virtual void HandleMessage(MsgEntry *msg);
46  bool OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget );
47  void OnListAction( pawsListBox* listbox, int status );
48  void Draw();
49  virtual void Show();
50  virtual void Hide();
51  virtual void Close();
52 
53  void UpdateStats( GEMClientActor* actor );
54  void SetTarget( GEMClientActor* actor );
55 
56 protected:
57 
58  bool SetupDoll();
59 
60  void BuySkill();
61 
62  void HandleSkillList( csString& skills );
63  void HandleSkillDescription( csString& description );
64  void SelectSkill(int skill);
65 
74 
75  csArray<pawsListBoxRow*> unsortedSkills;
76 
77  bool filter;
78  csString skillString;
79  csString selectedSkill;
80 
82 
83  csRef<iDocumentSystem> xml;
84 
86  csString targetID;
88 };
89 
91 
92 
93 #endif
94 
This is a player or another &#39;alive&#39; entity on the client.
Definition: pscelclient.h:554
virtual void Hide()
Makes widget invisible and removes focus if widget has current focus.
pawsTextBox * manaCurrent
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
csRef< iDocumentSystem > xml
This widget is used to view a mesh in it&#39;s own seperate world.
pawsTextBox * manaTotal
pawsMultiLineTextBox * magicSkillDescription
pawsProgressBar * manaBar
pawsTextBox * hpTotal
void HandleSkillDescription(csString &description)
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
pawsTextBox * pysStaminaCurrent
pawsTextBox * pysStaminaTotal
pawsMultiLineTextBox * knownSpellDescription
pawsMultiLineTextBox * variousSkillDescription
pawsTextBox * hpCurrent
pawsTextBox * menStaminaCurrent
A manager class that handles all the details of a characters appearance.
Definition: charapp.h:65
pawsTextBox * menStaminaTotal
virtual void Show()
Makes widget visible and brings it to the front.
pawsProgressBar * hpBar
pawsListBox * statsSkillList
virtual void HandleMessage(MsgEntry *msg)
void Draw()
Draws the widget and all of it&#39;s children.
GEMClientActor * target
A simple list box widget.
Definition: pawslistbox.h:202
bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.
A window similar to the one of the player with all details of your pet stats/skill.
pawsProgressBar * menStaminaBar
pawsListBox * magicSkillList
pawsMultiLineTextBox * statsSkillDescription
psCharAppearance * charApp
void UpdateStats(GEMClientActor *actor)
void HandleSkillList(csString &skills)
void OnListAction(pawsListBox *listbox, int status)
Called whenever an item in a child list box is selected.
A List Box Row.
Definition: pawslistbox.h:85
csArray< pawsListBoxRow * > unsortedSkills
Array keeping the server order of the skills.
pawsListBox * variousSkillList
virtual void Close()
Simply calls Hide() unless overidden.
pawsListBox * combatSkillList
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
CREATE_PAWS_FACTORY(pawsPetStatWindow)
pawsListBox * knownSpellList
void SetTarget(GEMClientActor *actor)
virtual ~pawsPetStatWindow()
A basic text box widget.
Definition: pawstextbox.h:42
pawsProgressBar * pysStaminaBar
pawsMultiLineTextBox * combatSkillDescription
void SelectSkill(int skill)