|
xoreos
0.0.5
|
#include <chargeninfo.h>

Public Member Functions | |
| CharacterGenerationInfo (const CharacterGenerationInfo &info) | |
| void | operator= (const CharacterGenerationInfo &info) |
| const Common::UString & | getName () const |
| Get the name of the character. More... | |
| Common::UString | getPortrait () const |
| Get the name of the portrait of this character. More... | |
| Skin | getSkin () const |
| Get the skin type of the character. More... | |
| uint8_t | getFace () const |
| Get the current face index of the character. More... | |
| Class | getClass () const |
| Get the class of the character, defined in types.h. More... | |
| Gender | getGender () const |
| Get the gender of the Character. More... | |
| void | setName (const Common::UString &name) |
| Set the name of the Character. More... | |
| void | setSkin (Skin) |
| Set the skin type of the Character. More... | |
| void | setFace (uint8 face) |
| Set the face index of the character. More... | |
| Creature * | getCharacter () const |
| void | recreateHead () |
| Graphics::Aurora::Model * | getModel () |
Static Public Member Functions | |
| static CharacterGenerationInfo * | createRandomMaleSoldier () |
| static CharacterGenerationInfo * | createRandomMaleScout () |
| static CharacterGenerationInfo * | createRandomMaleScoundrel () |
| static CharacterGenerationInfo * | createRandomFemaleSoldier () |
| static CharacterGenerationInfo * | createRandomFemaleScout () |
| static CharacterGenerationInfo * | createRandomFemaleScoundrel () |
Private Member Functions | |
| CharacterGenerationInfo () | |
Private Attributes | |
| Class | _class |
| Gender | _gender |
| Skin | _skin |
| uint8 | _face |
| Common::UString | _name |
| Graphics::Aurora::Model * | _head |
| Common::ScopedPtr< Graphics::Aurora::Model > | _body |
Definition at line 42 of file chargeninfo.h.
| Engines::KotOR::CharacterGenerationInfo::CharacterGenerationInfo | ( | const CharacterGenerationInfo & | info | ) |
|
private |
Definition at line 246 of file chargeninfo.cpp.
Referenced by createRandomFemaleScoundrel(), createRandomFemaleScout(), createRandomFemaleSoldier(), createRandomMaleScoundrel(), createRandomMaleScout(), and createRandomMaleSoldier().

|
static |
Definition at line 113 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR::kClassScoundrel, Engines::KotOR::kGenderFemale, and Engines::KotOR::kSkinMAX.
Referenced by Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu().


|
static |
Definition at line 98 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR::kClassScout, Engines::KotOR::kGenderFemale, and Engines::KotOR::kSkinMAX.
Referenced by Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu().


|
static |
Definition at line 83 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR::kClassSoldier, Engines::KotOR::kGenderFemale, and Engines::KotOR::kSkinMAX.
Referenced by Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu(), and Engines::KotOR::SavedGame::getPC().


|
static |
Definition at line 68 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR::kClassScoundrel, Engines::KotOR::kGenderMale, and Engines::KotOR::kSkinMAX.
Referenced by Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu().


|
static |
Definition at line 53 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR::kClassScout, Engines::KotOR::kGenderMale, and Engines::KotOR::kSkinMAX.
Referenced by Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu().


|
static |
Definition at line 38 of file chargeninfo.cpp.
References CharacterGenerationInfo(), Aurora::LTRFile::generateRandomName(), info(), Engines::KotOR::kClassSoldier, Engines::KotOR::kGenderMale, and Engines::KotOR::kSkinMAX.
Referenced by Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu(), and Engines::KotOR::SavedGame::getPC().


| Creature * Engines::KotOR::CharacterGenerationInfo::getCharacter | ( | ) | const |
Definition at line 193 of file chargeninfo.cpp.
References Common::ScopedPtrBase< T, Deallocator >::release().
Referenced by Engines::KotOR::CharacterGenerationMenu::start().


| Class Engines::KotOR::CharacterGenerationInfo::getClass | ( | ) | const |
Get the class of the character, defined in types.h.
Definition at line 173 of file chargeninfo.cpp.
References _class.
Referenced by Engines::KotOR::CharacterGenerationMenu::CharacterGenerationMenu(), and getModel().

| uint8_t Engines::KotOR::CharacterGenerationInfo::getFace | ( | ) | const |
Get the current face index of the character.
Definition at line 169 of file chargeninfo.cpp.
References _face.
Referenced by Engines::KotOR2::CharacterGenerationPortraitMenu::callbackActive(), getModel(), and recreateHead().

| Gender Engines::KotOR::CharacterGenerationInfo::getGender | ( | ) | const |
Get the gender of the Character.
Definition at line 177 of file chargeninfo.cpp.
References _gender.
Referenced by getModel(), and recreateHead().

| Graphics::Aurora::Model * Engines::KotOR::CharacterGenerationInfo::getModel | ( | ) |
Definition at line 216 of file chargeninfo.cpp.
References _body, _head, Common::ScopedPtrBase< T, Deallocator >::get(), Engines::KotOR::Creature::getBodyMeshString(), getClass(), getFace(), getGender(), Engines::KotOR::Creature::getHeadMeshString(), getSkin(), Engines::loadModelObject(), and Common::ScopedPtrBase< T, Deallocator >::reset().
Referenced by Engines::KotOR::CharacterGenerationMenu::CharacterGenerationMenu(), and Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu().


| const Common::UString & Engines::KotOR::CharacterGenerationInfo::getName | ( | ) | const |
| Common::UString Engines::KotOR::CharacterGenerationInfo::getPortrait | ( | ) | const |
Get the name of the portrait of this character.
Definition at line 132 of file chargeninfo.cpp.
References _face, _gender, _skin, Common::composeString(), Engines::KotOR::kGenderFemale, Engines::KotOR::kGenderMale, Engines::KotOR::kSkinA, Engines::KotOR::kSkinB, and Engines::KotOR::kSkinC.
Referenced by Engines::KotOR2::CharacterGenerationPortraitMenu::callbackActive(), Engines::KotOR::CharacterGenerationMenu::CharacterGenerationMenu(), and Engines::KotOR::CharacterGenerationMenu::showPortrait().


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

| void Engines::KotOR::CharacterGenerationInfo::operator= | ( | const CharacterGenerationInfo & | info | ) |
| void Engines::KotOR::CharacterGenerationInfo::recreateHead | ( | ) |
Definition at line 200 of file chargeninfo.cpp.
References _body, _head, getFace(), getGender(), Engines::KotOR::Creature::getHeadMeshString(), getSkin(), GfxMan, and Engines::loadModelObject().
Referenced by Engines::KotOR::CharacterGenerationMenu::showPortrait().


| void Engines::KotOR::CharacterGenerationInfo::setFace | ( | uint8 | face | ) |
Set the face index of the character.
Definition at line 189 of file chargeninfo.cpp.
References _face.
Referenced by Engines::KotOR2::CharacterGenerationPortraitMenu::callbackActive().

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

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

|
private |
Definition at line 91 of file chargeninfo.h.
Referenced by getModel(), and recreateHead().
|
private |
Definition at line 83 of file chargeninfo.h.
Referenced by CharacterGenerationInfo(), getClass(), and operator=().
|
private |
Definition at line 86 of file chargeninfo.h.
Referenced by CharacterGenerationInfo(), getFace(), getPortrait(), operator=(), and setFace().
|
private |
Definition at line 84 of file chargeninfo.h.
Referenced by CharacterGenerationInfo(), getGender(), getPortrait(), and operator=().
|
private |
Definition at line 90 of file chargeninfo.h.
Referenced by getModel(), and recreateHead().
|
private |
Definition at line 88 of file chargeninfo.h.
Referenced by CharacterGenerationInfo(), getName(), operator=(), and setName().
|
private |
Definition at line 85 of file chargeninfo.h.
Referenced by CharacterGenerationInfo(), getPortrait(), getSkin(), operator=(), and setSkin().
1.8.14