|
xoreos
0.0.5
|
#include <chargeninfo.h>

Public Member Functions | |
| const Common::UString & | getName () const |
| Get the name of the character. More... | |
| Skin | getSkin () const |
| Get the skin type of the character. More... | |
| unsigned int | getFace () const |
| Get the current face index of the character. More... | |
| Gender | getGender () const |
| Class | getClass () const |
| void | setName (const Common::UString &name) |
| Set the name of the Character. More... | |
| void | setSkin (Skin skin) |
| Set the skin type of the Character. More... | |
| void | setFace (unsigned int face) |
| Set the face index of the character. More... | |
| Common::UString | getBodyId () const |
| Get the Id for the body mesh. More... | |
| Common::UString | getBodyTextureId () const |
| Get the Id for the body mesh texture. More... | |
| Common::UString | getHeadId () const |
| Get the Id for the head mesh. More... | |
| Common::UString | getPortrait () const |
| Creature * | getCharacter () const |
| Create a creature object from the info. More... | |
Static Public Member Functions | |
| static CharacterGenerationInfo * | createRandomMaleConsular () |
| static CharacterGenerationInfo * | createRandomFemaleConsular () |
| static CharacterGenerationInfo * | createRandomMaleGuardian () |
| static CharacterGenerationInfo * | createRandomFemaleGuardian () |
| static CharacterGenerationInfo * | createRandomMaleSentinel () |
| static CharacterGenerationInfo * | createRandomFemaleSentinel () |
Private Member Functions | |
| unsigned int | getFaceId () const |
| Get the face id regarding the skin and gender. More... | |
| CharacterGenerationInfo () | |
Private Attributes | |
| Gender | _gender |
| Class | _class |
| Skin | _skin |
| unsigned int | _face |
| Common::UString | _name |
Definition at line 35 of file chargeninfo.h.
|
private |
Definition at line 169 of file chargeninfo.cpp.
Referenced by createRandomFemaleConsular(), createRandomFemaleGuardian(), createRandomFemaleSentinel(), createRandomMaleConsular(), createRandomMaleGuardian(), and createRandomMaleSentinel().

|
static |
Definition at line 59 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR2::kClassJediConsular, Engines::KotOR2::kGenderFemale, Engines::KotOR2::kSkinH, and Engines::KotOR2::kSkinMAX.
Referenced by Engines::KotOR2::ClassSelection::ClassSelection().


|
static |
Definition at line 103 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR2::kClassJediGuardian, Engines::KotOR2::kGenderFemale, Engines::KotOR2::kSkinH, and Engines::KotOR2::kSkinMAX.
Referenced by Engines::KotOR2::ClassSelection::ClassSelection().


|
static |
Definition at line 147 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR2::kClassJediSentinel, Engines::KotOR2::kGenderFemale, Engines::KotOR2::kSkinH, and Engines::KotOR2::kSkinMAX.
Referenced by Engines::KotOR2::ClassSelection::ClassSelection().


|
static |
Definition at line 37 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR2::kClassJediConsular, Engines::KotOR2::kGenderMale, Engines::KotOR2::kSkinH, and Engines::KotOR2::kSkinMAX.
Referenced by Engines::KotOR2::ClassSelection::ClassSelection().


|
static |
Definition at line 81 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR2::kClassJediGuardian, Engines::KotOR2::kGenderMale, Engines::KotOR2::kSkinH, and Engines::KotOR2::kSkinMAX.
Referenced by Engines::KotOR2::ClassSelection::ClassSelection().


|
static |
Definition at line 125 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR2::kClassJediSentinel, Engines::KotOR2::kGenderMale, Engines::KotOR2::kSkinH, and Engines::KotOR2::kSkinMAX.
Referenced by Engines::KotOR2::ClassSelection::ClassSelection().


| Common::UString Engines::KotOR2::CharacterGenerationInfo::getBodyId | ( | ) | const |
Get the Id for the body mesh.
Definition at line 204 of file chargeninfo.cpp.
References _gender, Engines::KotOR2::kGenderFemale, and Engines::KotOR2::kGenderMale.
| Common::UString Engines::KotOR2::CharacterGenerationInfo::getBodyTextureId | ( | ) | const |
Get the Id for the body mesh texture.
Definition at line 225 of file chargeninfo.cpp.
References _gender, _skin, Engines::KotOR2::kGenderFemale, Engines::KotOR2::kGenderMale, Engines::KotOR2::kSkinA, Engines::KotOR2::kSkinB, Engines::KotOR2::kSkinC, and Engines::KotOR2::kSkinH.
| Creature * Engines::KotOR2::CharacterGenerationInfo::getCharacter | ( | ) | const |
Create a creature object from the info.
Definition at line 401 of file chargeninfo.cpp.
References Common::ScopedPtrBase< T, Deallocator >::release().
Referenced by Engines::KotOR2::CharacterGeneration::start().


| Class Engines::KotOR2::CharacterGenerationInfo::getClass | ( | ) | const |
Definition at line 188 of file chargeninfo.cpp.
References _class.
Referenced by Engines::KotOR2::CharacterGeneration::CharacterGeneration().

| unsigned int Engines::KotOR2::CharacterGenerationInfo::getFace | ( | ) | const |
Get the current face index of the character.
Definition at line 180 of file chargeninfo.cpp.
References _face.
Referenced by Engines::KotOR::CharacterGenerationPortraitMenu::callbackActive().

|
private |
Get the face id regarding the skin and gender.
Definition at line 408 of file chargeninfo.cpp.
References _face, _gender, _skin, Engines::KotOR2::kGenderFemale, Engines::KotOR2::kGenderMale, Engines::KotOR2::kSkinA, Engines::KotOR2::kSkinB, Engines::KotOR2::kSkinC, and Engines::KotOR2::kSkinH.
Referenced by getHeadId().

| Gender Engines::KotOR2::CharacterGenerationInfo::getGender | ( | ) | const |
Definition at line 184 of file chargeninfo.cpp.
References _gender.
| Common::UString Engines::KotOR2::CharacterGenerationInfo::getHeadId | ( | ) | const |
Get the Id for the head mesh.
Definition at line 263 of file chargeninfo.cpp.
References _face, _gender, _skin, Common::composeString(), getFaceId(), Engines::KotOR2::kGenderFemale, Engines::KotOR2::kGenderMale, Engines::KotOR2::kSkinA, Engines::KotOR2::kSkinB, Engines::KotOR2::kSkinC, and Engines::KotOR2::kSkinH.

| const Common::UString & Engines::KotOR2::CharacterGenerationInfo::getName | ( | ) | const |
Get the name of the character.
Definition at line 172 of file chargeninfo.cpp.
References _name.
Referenced by Engines::KotOR2::CharacterGeneration::showName().

| Common::UString Engines::KotOR2::CharacterGenerationInfo::getPortrait | ( | ) | const |
Definition at line 306 of file chargeninfo.cpp.
References _face, _gender, _skin, Common::composeString(), Engines::KotOR2::kGenderFemale, Engines::KotOR2::kGenderMale, Engines::KotOR2::kSkinA, Engines::KotOR2::kSkinB, Engines::KotOR2::kSkinC, and Engines::KotOR2::kSkinH.
Referenced by Engines::KotOR::CharacterGenerationPortraitMenu::callbackActive(), Engines::KotOR2::CharacterGeneration::CharacterGeneration(), and Engines::KotOR2::CharacterGeneration::showPortrait().


| Skin Engines::KotOR2::CharacterGenerationInfo::getSkin | ( | ) | const |
Get the skin type of the character.
Definition at line 176 of file chargeninfo.cpp.
References _skin.
Referenced by Engines::KotOR::CharacterGenerationPortraitMenu::callbackActive().

| void Engines::KotOR2::CharacterGenerationInfo::setFace | ( | unsigned int | face | ) |
Set the face index of the character.
Definition at line 200 of file chargeninfo.cpp.
References _face.
Referenced by Engines::KotOR::CharacterGenerationPortraitMenu::callbackActive(), and Engines::KotOR2::CharacterGeneration::showPortrait().

| void Engines::KotOR2::CharacterGenerationInfo::setName | ( | const Common::UString & | name | ) |
Set the name of the Character.
Definition at line 192 of file chargeninfo.cpp.
References _name.
Referenced by Engines::KotOR::CharacterGenerationNameMenu::callbackActive(), Engines::KotOR::CharacterGenerationNameMenu::callbackKeyInput(), Engines::KotOR::CharacterGenerationNameMenu::callbackTextInput(), and Engines::KotOR2::CharacterGeneration::showName().

| void Engines::KotOR2::CharacterGenerationInfo::setSkin | ( | Skin | skin | ) |
Set the skin type of the Character.
Definition at line 196 of file chargeninfo.cpp.
References _skin.
Referenced by Engines::KotOR::CharacterGenerationPortraitMenu::callbackActive(), and Engines::KotOR2::CharacterGeneration::showPortrait().

|
private |
Definition at line 78 of file chargeninfo.h.
Referenced by getClass().
|
private |
Definition at line 80 of file chargeninfo.h.
Referenced by getFace(), getFaceId(), getHeadId(), getPortrait(), and setFace().
|
private |
Definition at line 77 of file chargeninfo.h.
Referenced by getBodyId(), getBodyTextureId(), getFaceId(), getGender(), getHeadId(), and getPortrait().
|
private |
Definition at line 81 of file chargeninfo.h.
|
private |
Definition at line 79 of file chargeninfo.h.
Referenced by getBodyTextureId(), getFaceId(), getHeadId(), getPortrait(), getSkin(), and setSkin().
1.8.14