xoreos  0.0.5
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
Engines::KotOR::CharacterGenerationInfo Class Reference

#include <chargeninfo.h>

Collaboration diagram for Engines::KotOR::CharacterGenerationInfo:
Collaboration graph
[legend]

Public Member Functions

 CharacterGenerationInfo (const CharacterGenerationInfo &info)
 
void operator= (const CharacterGenerationInfo &info)
 
const Common::UStringgetName () 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...
 
CreaturegetCharacter () const
 
void recreateHead ()
 
Graphics::Aurora::ModelgetModel ()
 

Static Public Member Functions

static CharacterGenerationInfocreateRandomMaleSoldier ()
 
static CharacterGenerationInfocreateRandomMaleScout ()
 
static CharacterGenerationInfocreateRandomMaleScoundrel ()
 
static CharacterGenerationInfocreateRandomFemaleSoldier ()
 
static CharacterGenerationInfocreateRandomFemaleScout ()
 
static CharacterGenerationInfocreateRandomFemaleScoundrel ()
 

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
 

Detailed Description

Definition at line 42 of file chargeninfo.h.

Constructor & Destructor Documentation

◆ CharacterGenerationInfo() [1/2]

Engines::KotOR::CharacterGenerationInfo::CharacterGenerationInfo ( const CharacterGenerationInfo info)

Definition at line 230 of file chargeninfo.cpp.

References _class, _face, _gender, _name, _skin, and info().

Here is the call graph for this function:

◆ CharacterGenerationInfo() [2/2]

Engines::KotOR::CharacterGenerationInfo::CharacterGenerationInfo ( )
private

Member Function Documentation

◆ createRandomFemaleScoundrel()

CharacterGenerationInfo * Engines::KotOR::CharacterGenerationInfo::createRandomFemaleScoundrel ( )
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createRandomFemaleScout()

CharacterGenerationInfo * Engines::KotOR::CharacterGenerationInfo::createRandomFemaleScout ( )
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createRandomFemaleSoldier()

CharacterGenerationInfo * Engines::KotOR::CharacterGenerationInfo::createRandomFemaleSoldier ( )
static

◆ createRandomMaleScoundrel()

CharacterGenerationInfo * Engines::KotOR::CharacterGenerationInfo::createRandomMaleScoundrel ( )
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createRandomMaleScout()

CharacterGenerationInfo * Engines::KotOR::CharacterGenerationInfo::createRandomMaleScout ( )
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createRandomMaleSoldier()

CharacterGenerationInfo * Engines::KotOR::CharacterGenerationInfo::createRandomMaleSoldier ( )
static

◆ getCharacter()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getClass()

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().

Here is the caller graph for this function:

◆ getFace()

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().

Here is the caller graph for this function:

◆ getGender()

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().

Here is the caller graph for this function:

◆ getModel()

Graphics::Aurora::Model * Engines::KotOR::CharacterGenerationInfo::getModel ( )

◆ getName()

const Common::UString & Engines::KotOR::CharacterGenerationInfo::getName ( ) const

Get the name of the character.

Definition at line 128 of file chargeninfo.cpp.

References _name.

◆ getPortrait()

Common::UString Engines::KotOR::CharacterGenerationInfo::getPortrait ( ) const

◆ getSkin()

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().

Here is the caller graph for this function:

◆ operator=()

void Engines::KotOR::CharacterGenerationInfo::operator= ( const CharacterGenerationInfo info)

Definition at line 238 of file chargeninfo.cpp.

References _class, _face, _gender, _name, _skin, and info().

Here is the call graph for this function:

◆ recreateHead()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFace()

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().

Here is the caller graph for this function:

◆ setName()

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().

Here is the caller graph for this function:

◆ setSkin()

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().

Here is the caller graph for this function:

Member Data Documentation

◆ _body

Common::ScopedPtr<Graphics::Aurora::Model> Engines::KotOR::CharacterGenerationInfo::_body
private

Definition at line 91 of file chargeninfo.h.

Referenced by getModel(), and recreateHead().

◆ _class

Class Engines::KotOR::CharacterGenerationInfo::_class
private

Definition at line 83 of file chargeninfo.h.

Referenced by CharacterGenerationInfo(), getClass(), and operator=().

◆ _face

uint8 Engines::KotOR::CharacterGenerationInfo::_face
private

Definition at line 86 of file chargeninfo.h.

Referenced by CharacterGenerationInfo(), getFace(), getPortrait(), operator=(), and setFace().

◆ _gender

Gender Engines::KotOR::CharacterGenerationInfo::_gender
private

Definition at line 84 of file chargeninfo.h.

Referenced by CharacterGenerationInfo(), getGender(), getPortrait(), and operator=().

◆ _head

Graphics::Aurora::Model* Engines::KotOR::CharacterGenerationInfo::_head
private

Definition at line 90 of file chargeninfo.h.

Referenced by getModel(), and recreateHead().

◆ _name

Common::UString Engines::KotOR::CharacterGenerationInfo::_name
private

Definition at line 88 of file chargeninfo.h.

Referenced by CharacterGenerationInfo(), getName(), operator=(), and setName().

◆ _skin

Skin Engines::KotOR::CharacterGenerationInfo::_skin
private

Definition at line 85 of file chargeninfo.h.

Referenced by CharacterGenerationInfo(), getPortrait(), getSkin(), operator=(), and setSkin().


The documentation for this class was generated from the following files: