xoreos  0.0.5
chargeninfo.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_KOTOR2_GUI_CHARGEN_CHARACTERGENERATIONINFO_H
26 #define ENGINES_KOTOR2_GUI_CHARGEN_CHARACTERGENERATIONINFO_H
27 
30 
31 namespace Engines {
32 
33 namespace KotOR2 {
34 
36 public:
43 
45  const Common::UString &getName() const;
47  Skin getSkin() const;
49  unsigned int getFace() const;
50 
51  Gender getGender() const;
52 
53  Class getClass() const;
54 
56  void setName(const Common::UString &name);
58  void setSkin(Skin skin);
60  void setFace(unsigned int face);
61 
63  Common::UString getBodyId() const;
67  Common::UString getHeadId() const;
68 
71  Creature *getCharacter() const;
72 
73 private:
75  unsigned int getFaceId() const;
76 
80  unsigned int _face;
82 
84 };
85 
86 } // End of namespace KotOR2
87 
88 } // End of namespace Engines
89 
90 
91 #endif // ENGINES_KOTOR2_GUI_CHARGEN_CHARACTERGENERATIONINFO_H
92 
A creature in a Star Wars: Knights of the Old Republic II - The Sith Lords area.
const Common::UString & getName() const
Get the name of the character.
A class holding an UTF-8 string.
Definition: ustring.h:48
static CharacterGenerationInfo * createRandomMaleGuardian()
Definition: chargeninfo.cpp:81
void setFace(unsigned int face)
Set the face index of the character.
void setSkin(Skin skin)
Set the skin type of the Character.
static CharacterGenerationInfo * createRandomMaleSentinel()
Common::UString getHeadId() const
Get the Id for the head mesh.
Common::UString getBodyId() const
Get the Id for the body mesh.
Basic Star Wars: Knights of the Old Republic II - The Sith Lords type definitions.
unsigned int getFace() const
Get the current face index of the character.
static CharacterGenerationInfo * createRandomFemaleGuardian()
Skin getSkin() const
Get the skin type of the character.
static CharacterGenerationInfo * createRandomMaleConsular()
Definition: chargeninfo.cpp:37
unsigned int getFaceId() const
Get the face id regarding the skin and gender.
static CharacterGenerationInfo * createRandomFemaleSentinel()
Common::UString getBodyTextureId() const
Get the Id for the body mesh texture.
void setName(const Common::UString &name)
Set the name of the Character.
static CharacterGenerationInfo * createRandomFemaleConsular()
Definition: chargeninfo.cpp:59
Creature * getCharacter() const
Create a creature object from the info.