ScummVM API documentation
dialogs_create_char.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef XEEN_DIALOGS_CREATE_CHAR_H
23 #define XEEN_DIALOGS_CREATE_CHAR_H
24 
25 #include "mm/xeen/dialogs/dialogs.h"
26 #include "mm/xeen/character.h"
27 
28 namespace MM {
29 namespace Xeen {
30 
32 private:
33  SpriteResource _icons;
34  SpriteResource _dice;
35  Common::Point _diceSize;
36  int _diceFrame[3];
37  Common::Point _dicePos[3];
38  Common::Point _diceInc[3];
39  uint _attribs[TOTAL_ATTRIBUTES];
40  bool _allowedClasses[TOTAL_CLASSES];
41 private:
46 
50  void loadButtons();
51 
55  void drawIcons();
56 
60  void drawIcons2();
61 
65  void drawDice();
66 
70  void execute();
71 
75  int getAttribFromKeycode(int keycode) const;
76 
82  bool swapAttributes(int keycode);
83 
87  int exchangeAttribute(int srcAttr);
88 
93  void checkClass();
94 
98  int newCharDetails(Race race, Sex sex, int classId, int selectedClass, Common::String &msg);
99 
103  void printSelectionArrow(int selectedClass);
104 
108  bool saveCharacter(Character &c, int classId, Race race, Sex sex);
109 
114  void rollAttributes();
115 public:
119  static void show(XeenEngine *vm);
120 };
121 
122 } // End of namespace Xeen
123 } // End of namespace MM
124 
125 #endif
Definition: str.h:59
Definition: sprites.h:52
Definition: xeen.h:93
Definition: character.h:106
Definition: detection.h:27
Definition: rect.h:45
static void show(XeenEngine *vm)
Definition: dialogs.h:74
Definition: dialogs_create_char.h:31