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_KOTOR_GUI_CHARGEN_CHARGENCHAR_H
26 #define ENGINES_KOTOR_GUI_CHARGEN_CHARGENCHAR_H
27 
28 #include "src/common/ustring.h"
29 #include "src/common/scopedptr.h"
30 
32 
35 
36 namespace Engines {
37 
38 namespace KotOR {
39 
40 class Creature;
41 
43 public:
46 
47  // Create a random character for each of the six archetypes
54 
56  const Common::UString &getName() const;
60  Skin getSkin() const;
62  uint8_t getFace() const;
64  Class getClass() const;
66  Gender getGender() const;
67 
69  void setName(const Common::UString &name);
71  void setSkin(Skin);
73  void setFace(uint8 face);
74 
75  Creature *getCharacter() const;
76 
77  void recreateHead();
79 
80 private:
82 
87 
89 
92 };
93 
94 } // End of namespace KotOR
95 
96 } // End of namespace Engines
97 
98 #endif // ENGINES_KOTOR_GUI_CHARGEN_CHARGENCHAR_H
A creature in a Star Wars: Knights of the Old Republic area.
static CharacterGenerationInfo * createRandomMaleScout()
Definition: chargeninfo.cpp:53
static CharacterGenerationInfo * createRandomMaleScoundrel()
Definition: chargeninfo.cpp:68
void operator=(const CharacterGenerationInfo &info)
A class holding an UTF-8 string.
Definition: ustring.h:48
uint8_t uint8
Definition: types.h:200
Skin getSkin() const
Get the skin type of the character.
void setName(const Common::UString &name)
Set the name of the Character.
Graphics::Aurora::Model * getModel()
A simple scoped smart pointer template.
Common::ScopedPtr< Graphics::Aurora::Model > _body
Definition: chargeninfo.h:91
static CharacterGenerationInfo * createRandomMaleSoldier()
Definition: chargeninfo.cpp:38
void info(const char *s,...)
Definition: util.cpp:69
A 3D model of an object.
void setFace(uint8 face)
Set the face index of the character.
Graphics::Aurora::Model * _head
Definition: chargeninfo.h:90
void setSkin(Skin)
Set the skin type of the Character.
Unicode string handling.
static CharacterGenerationInfo * createRandomFemaleScoundrel()
static CharacterGenerationInfo * createRandomFemaleScout()
Definition: chargeninfo.cpp:98
Gender getGender() const
Get the gender of the Character.
Class getClass() const
Get the class of the character, defined in types.h.
uint8_t getFace() const
Get the current face index of the character.
const Common::UString & getName() const
Get the name of the character.
static CharacterGenerationInfo * createRandomFemaleSoldier()
Definition: chargeninfo.cpp:83
Basic Star Wars: Knights of the Old Republic type definitions.
Common::UString getPortrait() const
Get the name of the portrait of this character.