xoreos
0.0.5
src
engines
kotor
gui
chargen
charactergeneration.h
Go to the documentation of this file.
1
/* xoreos - A reimplementation of BioWare's Aurora engine
2
*
3
* xoreos is the legal property of its developers, whose names
4
* can be found in the AUTHORS file distributed with this source
5
* distribution.
6
*
7
* xoreos 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; either version 3
10
* of the License, or (at your option) any later version.
11
*
12
* xoreos 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 xoreos. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
25
#ifndef ENGINES_KOTOR_GUI_CHARGEN_CHARACTERGENERATION_H
26
#define ENGINES_KOTOR_GUI_CHARGEN_CHARACTERGENERATION_H
27
28
#include "
src/engines/kotor/module.h
"
29
30
#include "
src/engines/kotor/gui/gui.h
"
31
32
#include "
src/engines/kotor/gui/chargen/chargeninfo.h
"
33
#include "
src/engines/kotor/gui/chargen/chargenbase.h
"
34
35
namespace
Engines
{
36
37
namespace
KotOR {
38
39
class
CharacterGenerationInfo;
40
41
class
CharacterGenerationMenu
:
public
GUI
{
42
public
:
43
CharacterGenerationMenu
(
Module
*module,
CharacterGenerationInfo
*pc, ::
Engines::Console
*console = 0);
44
~CharacterGenerationMenu
();
45
46
void
showQuickOrCustom
();
47
void
showQuick
();
48
void
showCustom
();
49
50
void
showPortrait
();
51
void
showName
();
52
53
int
getStep
();
54
void
decStep
();
55
56
void
start
();
57
58
private
:
59
void
callbackKeyInput
(
const
Events::Key
&key,
const
Events::EventType
&type);
60
61
Module
*
_module
;
62
CharacterGenerationInfo
*
_pc
;
63
64
int
_step
;
65
66
Common::ScopedPtr<GUI>
_quickOrCustom
;
67
Common::ScopedPtr<GUI>
_quickChar
;
68
Common::ScopedPtr<GUI>
_customChar
;
69
70
Common::ScopedPtr<CharacterGenerationBaseMenu>
_charGenMenu
;
71
72
Common::ScopedPtr<Graphics::Aurora::SubSceneQuad>
_charSubScene
;
73
};
74
75
}
// End of namespace KotOR
76
77
}
// End of namespace Engines
78
79
#endif // ENGINES_KOTOR_GUI_CHARGEN_CHARACTERGENERATION_H
Engines::KotOR::CharacterGenerationMenu::_pc
CharacterGenerationInfo * _pc
Definition:
charactergeneration.h:62
Engines::KotOR::Module
Definition:
module.h:60
Engines::KotOR::CharacterGenerationMenu::showQuick
void showQuick()
Definition:
charactergeneration.cpp:151
Engines::KotOR::CharacterGenerationMenu::decStep
void decStep()
Definition:
charactergeneration.cpp:213
Engines::KotOR::CharacterGenerationMenu::showName
void showName()
Definition:
charactergeneration.cpp:191
Engines::KotOR::CharacterGenerationMenu::showQuickOrCustom
void showQuickOrCustom()
Definition:
charactergeneration.cpp:139
Engines::KotOR::CharacterGenerationMenu::start
void start()
Definition:
charactergeneration.cpp:217
Engines::KotOR::CharacterGenerationMenu::_step
int _step
Definition:
charactergeneration.h:64
Engines::KotOR::CharacterGenerationMenu
Definition:
charactergeneration.h:41
Engines::KotOR::CharacterGenerationInfo
Definition:
chargeninfo.h:42
Engines
Definition:
console.cpp:69
Common::ScopedPtr
A scoped plain pointer, allowing pointer-y access and normal deletion.
Definition:
scopedptr.h:120
Engines::KotOR::CharacterGenerationMenu::_quickOrCustom
Common::ScopedPtr< GUI > _quickOrCustom
Definition:
charactergeneration.h:66
Engines::KotOR::CharacterGenerationMenu::_charSubScene
Common::ScopedPtr< Graphics::Aurora::SubSceneQuad > _charSubScene
Definition:
charactergeneration.h:72
Engines::KotOR::CharacterGenerationMenu::CharacterGenerationMenu
CharacterGenerationMenu(Module *module, CharacterGenerationInfo *pc, ::Engines::Console *console=0)
Definition:
charactergeneration.cpp:46
gui.h
A KotOR GUI.
Engines::KotOR::CharacterGenerationMenu::getStep
int getStep()
Definition:
charactergeneration.cpp:209
Engines::KotOR::CharacterGenerationMenu::showPortrait
void showPortrait()
Definition:
charactergeneration.cpp:171
Engines::KotOR::CharacterGenerationMenu::callbackKeyInput
void callbackKeyInput(const Events::Key &key, const Events::EventType &type)
Callback that's triggered when a key is pressed or released.
Definition:
charactergeneration.cpp:231
Events::EventType
EventType
Custom event types.
Definition:
types.h:45
Engines::KotOR::CharacterGenerationMenu::showCustom
void showCustom()
Definition:
charactergeneration.cpp:161
Engines::KotOR::CharacterGenerationMenu::_module
Module * _module
Definition:
charactergeneration.h:61
Events::Key
Key
Definition:
types.h:78
Engines::KotOR::CharacterGenerationMenu::_charGenMenu
Common::ScopedPtr< CharacterGenerationBaseMenu > _charGenMenu
Definition:
charactergeneration.h:70
Engines::KotOR::CharacterGenerationMenu::_customChar
Common::ScopedPtr< GUI > _customChar
Definition:
charactergeneration.h:68
module.h
The context needed to run a Star Wars: Knights of the Old Republic module.
Engines::KotOR::GUI
A KotOR GUI.
Definition:
gui.h:57
chargeninfo.h
The class for storing character information for generation.
Engines::KotOR::CharacterGenerationMenu::~CharacterGenerationMenu
~CharacterGenerationMenu()
Definition:
charactergeneration.cpp:136
chargenbase.h
A base class for all character creation menus.
Engines::Console
Definition:
console.h:190
Engines::KotOR::CharacterGenerationMenu::_quickChar
Common::ScopedPtr< GUI > _quickChar
Definition:
charactergeneration.h:67
Generated on Sun Nov 18 2018 15:13:40 for xoreos by
1.8.14