xoreos
0.0.5
src
engines
kotor
gui
chargen
classselection.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_CLASSSELECTION_H
26
#define ENGINES_KOTOR_GUI_CHARGEN_CLASSSELECTION_H
27
28
#include "glm/mat4x4.hpp"
29
30
#include "
src/graphics/aurora/subscenequad.h
"
31
32
#include "
src/engines/kotor/module.h
"
33
34
#include "
src/engines/kotor/gui/gui.h
"
35
#include "
src/engines/kotor/gui/chargen/chargeninfo.h
"
36
#include "
src/engines/aurora/kotorjadegui/button.h
"
37
#include "
src/engines/aurora/kotorjadegui/label.h
"
38
39
#include "
src/engines/kotor/gui/chargen/chargeninfo.h
"
40
41
namespace
Engines
{
42
43
namespace
KotOR {
44
45
class
ClassSelectionMenu
:
public
GUI
{
46
public
:
47
ClassSelectionMenu
(
Module
*module, ::
Engines::Console
*console = 0);
48
virtual
~ClassSelectionMenu
();
49
50
private
:
51
void
createCharacterGeneration
(
CharacterGenerationInfo
*);
52
53
void
callbackRun
();
54
void
callbackActive
(
Widget
&widget);
55
void
callbackKeyInput
(
const
Events::Key
&key,
const
Events::EventType
&type);
56
57
void
setupClassSubScene
(
const
Common::UString
&widgetName,
58
Graphics::Aurora::SubSceneQuad
&subScene,
Graphics::Aurora::Model
*model,
59
glm::mat4 &projection, glm::mat4 &transformation);
60
61
Common::ScopedPtr<GUI>
_charGen
;
62
63
Graphics::Aurora::SubSceneQuad
_maleSoldierSubScene
;
64
Graphics::Aurora::SubSceneQuad
_maleScoutSubScene
;
65
Graphics::Aurora::SubSceneQuad
_maleScoundrelSubScene
;
66
Graphics::Aurora::SubSceneQuad
_femaleSoldierSubScene
;
67
Graphics::Aurora::SubSceneQuad
_femaleScoutSubScene
;
68
Graphics::Aurora::SubSceneQuad
_femaleScoundrelSubScene
;
69
70
WidgetLabel
*
_labelDesc
;
71
WidgetLabel
*
_labelTitle
;
72
73
WidgetButton
*
_maleSoldierButton
;
74
WidgetButton
*
_maleScoutButton
;
75
WidgetButton
*
_maleScoundrelButton
;
76
WidgetButton
*
_femaleSoldierButton
;
77
WidgetButton
*
_femaleScoutButton
;
78
WidgetButton
*
_femaleScoundrelButton
;
79
80
WidgetButton
*
_hoveredButton
;
81
82
Module
*
_module
;
83
84
Common::UString
_soldierDesc
;
85
Common::UString
_scoundrelDesc
;
86
Common::UString
_scoutDesc
;
87
88
Common::UString
_soldierMaleTitle
;
89
Common::UString
_soldierFemaleTitle
;
90
Common::UString
_scoundrelMaleTitle
;
91
Common::UString
_scoundrelFemaleTitle
;
92
Common::UString
_scoutMaleTitle
;
93
Common::UString
_scoutFemaleTitle
;
94
95
CharacterGenerationInfo
*
_maleSoldier
;
96
CharacterGenerationInfo
*
_maleScout
;
97
CharacterGenerationInfo
*
_maleScoundrel
;
98
CharacterGenerationInfo
*
_femaleSoldier
;
99
CharacterGenerationInfo
*
_femaleScout
;
100
CharacterGenerationInfo
*
_femaleScoundrel
;
101
};
102
103
}
// End of namespace KotOR
104
105
}
// End of namespace Engines
106
107
108
#endif // ENGINES_KOTOR_GUI_CHARGEN_CLASSSELECTION_H
Engines::KotOR::ClassSelectionMenu::~ClassSelectionMenu
virtual ~ClassSelectionMenu()
Definition:
classselection.cpp:125
Graphics::Aurora::Model
Definition:
model.h:63
Engines::KotOR::Module
Definition:
module.h:60
label.h
A label widget for Star Wars: Knights of the Old Republic and Jade Empire.
Engines::KotOR::ClassSelectionMenu::_hoveredButton
WidgetButton * _hoveredButton
Definition:
classselection.h:80
Engines::KotOR::ClassSelectionMenu::_scoutDesc
Common::UString _scoutDesc
Definition:
classselection.h:86
Engines::KotOR::ClassSelectionMenu::_labelTitle
WidgetLabel * _labelTitle
Definition:
classselection.h:71
Common::UString
A class holding an UTF-8 string.
Definition:
ustring.h:48
Engines::KotOR::ClassSelectionMenu::_femaleScoundrelSubScene
Graphics::Aurora::SubSceneQuad _femaleScoundrelSubScene
Definition:
classselection.h:68
Engines::KotOR::ClassSelectionMenu::_maleScoutSubScene
Graphics::Aurora::SubSceneQuad _maleScoutSubScene
Definition:
classselection.h:64
Engines::KotOR::ClassSelectionMenu::_scoundrelDesc
Common::UString _scoundrelDesc
Definition:
classselection.h:85
Engines::KotOR::ClassSelectionMenu::_femaleScoundrel
CharacterGenerationInfo * _femaleScoundrel
Definition:
classselection.h:100
button.h
A button widget for Star Wars: Knights of the Old Republic and Jade Empire.
Engines::KotOR::ClassSelectionMenu::_femaleSoldierSubScene
Graphics::Aurora::SubSceneQuad _femaleSoldierSubScene
Definition:
classselection.h:66
Engines::KotOR::ClassSelectionMenu::_femaleSoldierButton
WidgetButton * _femaleSoldierButton
Definition:
classselection.h:76
Engines::KotOR::ClassSelectionMenu::_charGen
Common::ScopedPtr< GUI > _charGen
Definition:
classselection.h:61
Engines::WidgetLabel
Definition:
label.h:32
Engines::KotOR::ClassSelectionMenu::_scoundrelFemaleTitle
Common::UString _scoundrelFemaleTitle
Definition:
classselection.h:91
Engines::KotOR::ClassSelectionMenu::callbackActive
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
Definition:
classselection.cpp:178
Engines::KotOR::ClassSelectionMenu::_soldierFemaleTitle
Common::UString _soldierFemaleTitle
Definition:
classselection.h:89
Engines::KotOR::ClassSelectionMenu::callbackRun
void callbackRun()
Callback that's triggered periodically in the run() method.
Definition:
classselection.cpp:138
Engines::KotOR::ClassSelectionMenu::_maleSoldierButton
WidgetButton * _maleSoldierButton
Definition:
classselection.h:73
Engines::KotOR::ClassSelectionMenu::_maleScoundrelSubScene
Graphics::Aurora::SubSceneQuad _maleScoundrelSubScene
Definition:
classselection.h:65
Engines::KotOR::ClassSelectionMenu::_femaleScoutButton
WidgetButton * _femaleScoutButton
Definition:
classselection.h:77
Engines::KotOR::ClassSelectionMenu::_scoutMaleTitle
Common::UString _scoutMaleTitle
Definition:
classselection.h:92
Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu
ClassSelectionMenu(Module *module, ::Engines::Console *console=0)
Definition:
classselection.cpp:39
Engines::KotOR::ClassSelectionMenu::_scoutFemaleTitle
Common::UString _scoutFemaleTitle
Definition:
classselection.h:93
Engines::KotOR::ClassSelectionMenu::_maleSoldierSubScene
Graphics::Aurora::SubSceneQuad _maleSoldierSubScene
Definition:
classselection.h:63
Engines::KotOR::ClassSelectionMenu::createCharacterGeneration
void createCharacterGeneration(CharacterGenerationInfo *)
Definition:
classselection.cpp:134
Engines::KotOR::ClassSelectionMenu::_femaleScoutSubScene
Graphics::Aurora::SubSceneQuad _femaleScoutSubScene
Definition:
classselection.h:67
Engines::KotOR::ClassSelectionMenu::_maleScoutButton
WidgetButton * _maleScoutButton
Definition:
classselection.h:74
Engines::KotOR::ClassSelectionMenu::_maleScout
CharacterGenerationInfo * _maleScout
Definition:
classselection.h:96
Engines::WidgetButton
Definition:
button.h:34
Engines::KotOR::CharacterGenerationInfo
Definition:
chargeninfo.h:42
Engines::KotOR::ClassSelectionMenu::_labelDesc
WidgetLabel * _labelDesc
Definition:
classselection.h:70
Engines
Definition:
console.cpp:69
Common::ScopedPtr
A scoped plain pointer, allowing pointer-y access and normal deletion.
Definition:
scopedptr.h:120
Engines::KotOR::ClassSelectionMenu::_maleScoundrel
CharacterGenerationInfo * _maleScoundrel
Definition:
classselection.h:97
gui.h
A KotOR GUI.
Engines::KotOR::ClassSelectionMenu::_femaleScoundrelButton
WidgetButton * _femaleScoundrelButton
Definition:
classselection.h:78
Engines::KotOR::ClassSelectionMenu::_soldierDesc
Common::UString _soldierDesc
Definition:
classselection.h:84
Engines::KotOR::ClassSelectionMenu::_soldierMaleTitle
Common::UString _soldierMaleTitle
Definition:
classselection.h:88
Graphics::Aurora::SubSceneQuad
Definition:
subscenequad.h:36
Engines::KotOR::ClassSelectionMenu::_maleScoundrelButton
WidgetButton * _maleScoundrelButton
Definition:
classselection.h:75
Engines::Widget
A widget in a GUI.
Definition:
widget.h:40
Engines::KotOR::ClassSelectionMenu::setupClassSubScene
void setupClassSubScene(const Common::UString &widgetName, Graphics::Aurora::SubSceneQuad &subScene, Graphics::Aurora::Model *model, glm::mat4 &projection, glm::mat4 &transformation)
Definition:
classselection.cpp:269
Events::EventType
EventType
Custom event types.
Definition:
types.h:45
Engines::KotOR::ClassSelectionMenu::_femaleScout
CharacterGenerationInfo * _femaleScout
Definition:
classselection.h:99
Engines::KotOR::ClassSelectionMenu::_scoundrelMaleTitle
Common::UString _scoundrelMaleTitle
Definition:
classselection.h:90
Events::Key
Key
Definition:
types.h:78
Engines::KotOR::ClassSelectionMenu::_module
Module * _module
Definition:
classselection.h:82
subscenequad.h
The quad for displaying a subscene.
Engines::KotOR::ClassSelectionMenu::callbackKeyInput
void callbackKeyInput(const Events::Key &key, const Events::EventType &type)
Callback that's triggered when a key is pressed or released.
Definition:
classselection.cpp:224
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
Engines::KotOR::ClassSelectionMenu::_femaleSoldier
CharacterGenerationInfo * _femaleSoldier
Definition:
classselection.h:98
chargeninfo.h
The class for storing character information for generation.
Engines::Console
Definition:
console.h:190
Engines::KotOR::ClassSelectionMenu::_maleSoldier
CharacterGenerationInfo * _maleSoldier
Definition:
classselection.h:95
Engines::KotOR::ClassSelectionMenu
Definition:
classselection.h:45
Generated on Sun Nov 18 2018 15:13:40 for xoreos by
1.8.14