Planeshift
pawscharpick.h
Go to the documentation of this file.
1 #ifndef PAWS_CHAR_PICKER_HEADER
2 #define PAWS_CHAR_PICKER_HEADER
3 
5 #include "paws/pawswidget.h"
6 #include "net/message.h"
7 #include "net/cmdbase.h"
8 
9 #include "psengine.h"
10 
11 class pawsObjectView;
12 class psCharAppearance;
13 
14 #define MAX_CHARS 10
15 
16 struct Model
17 {
18  csString factName;
19  csString race;
20  csString traits;
21  csString equipment;
22 };
23 
32 {
33 public:
36 
37  bool PostSetup();
38  void HandleMessage( MsgEntry* me );
39  bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget* widget);
40  bool OnButtonReleased(int mouseButton, int keyModifier, pawsWidget* widget);
41  void Show();
42 
43  void SelectCharacter(int character, pawsWidget* widget);
44  void SelectCharacter(int character);
45 
47  void ReceivedStrings();
48 
49  void Draw();
50 
51  void StoreHashedPassword(csString passwordHash, csString passwordHash256) {passHash = passwordHash; passHash256 = passwordHash256;}
52  void StoreServerName(csString servName) {serverName = servName;}
53 
54  bool CheckLoadStatus();
55 private:
56 
58  void SetupCharacterCreationScreens();
59 
61  void ReturnToLoginWindow();
62 
64  bool characterCreationScreens;
65 
66  virtual void OnStringEntered(const char *name, int param,const char *value);
67 
68  int charactersFound;
69  int selectedCharacter;
70 
71  bool connecting;
72  bool gotStrings;
73  int lastResend;
74 
75  pawsObjectView* view;
76  Model models[MAX_CHARS];
77 
78  csString passHash;
79  csString passHash256;
80  csString serverName;
81  psCharAppearance* charApp;
82  bool loaded;
83 };
84 
86 
87 
88 #endif
89 
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
This widget is used to view a mesh in it's own seperate world.
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
csString equipment
Definition: pawscharpick.h:21
#define MAX_CHARS
Definition: pawscharpick.h:14
A manager class that handles all the details of a characters appearance.
Definition: charapp.h:65
CREATE_PAWS_FACTORY(pawsCharacterPickerWindow)
csString race
Definition: pawscharpick.h:19
Where players can pick which character ( from the account ) that they to play as. ...
Definition: pawscharpick.h:31
csString traits
Definition: pawscharpick.h:20
void StoreServerName(csString servName)
Definition: pawscharpick.h:52
This interface defines the callback used by pawsStringPromptWindow to notify another window of a supp...
void StoreHashedPassword(csString passwordHash, csString passwordHash256)
Definition: pawscharpick.h:51
csString factName
Definition: pawscharpick.h:18