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

#include <chargeninfo.h>

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

Public Member Functions

const Common::UStringgetName () 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
 
CreaturegetCharacter () const
 Create a creature object from the info. More...
 

Static Public Member Functions

static CharacterGenerationInfocreateRandomMaleConsular ()
 
static CharacterGenerationInfocreateRandomFemaleConsular ()
 
static CharacterGenerationInfocreateRandomMaleGuardian ()
 
static CharacterGenerationInfocreateRandomFemaleGuardian ()
 
static CharacterGenerationInfocreateRandomMaleSentinel ()
 
static CharacterGenerationInfocreateRandomFemaleSentinel ()
 

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
 

Detailed Description

Definition at line 35 of file chargeninfo.h.

Constructor & Destructor Documentation

◆ CharacterGenerationInfo()

Engines::KotOR2::CharacterGenerationInfo::CharacterGenerationInfo ( )
private

Member Function Documentation

◆ createRandomFemaleConsular()

CharacterGenerationInfo * Engines::KotOR2::CharacterGenerationInfo::createRandomFemaleConsular ( )
static

◆ createRandomFemaleGuardian()

CharacterGenerationInfo * Engines::KotOR2::CharacterGenerationInfo::createRandomFemaleGuardian ( )
static

◆ createRandomFemaleSentinel()

CharacterGenerationInfo * Engines::KotOR2::CharacterGenerationInfo::createRandomFemaleSentinel ( )
static

◆ createRandomMaleConsular()

CharacterGenerationInfo * Engines::KotOR2::CharacterGenerationInfo::createRandomMaleConsular ( )
static

◆ createRandomMaleGuardian()

CharacterGenerationInfo * Engines::KotOR2::CharacterGenerationInfo::createRandomMaleGuardian ( )
static

◆ createRandomMaleSentinel()

CharacterGenerationInfo * Engines::KotOR2::CharacterGenerationInfo::createRandomMaleSentinel ( )
static

◆ getBodyId()

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.

◆ getBodyTextureId()

Common::UString Engines::KotOR2::CharacterGenerationInfo::getBodyTextureId ( ) const

◆ getCharacter()

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

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

◆ getClass()

Class Engines::KotOR2::CharacterGenerationInfo::getClass ( ) const

Definition at line 188 of file chargeninfo.cpp.

References _class.

Referenced by Engines::KotOR2::CharacterGeneration::CharacterGeneration().

Here is the caller graph for this function:

◆ getFace()

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

Here is the caller graph for this function:

◆ getFaceId()

unsigned int Engines::KotOR2::CharacterGenerationInfo::getFaceId ( ) const
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().

Here is the caller graph for this function:

◆ getGender()

Gender Engines::KotOR2::CharacterGenerationInfo::getGender ( ) const

Definition at line 184 of file chargeninfo.cpp.

References _gender.

◆ getHeadId()

Common::UString Engines::KotOR2::CharacterGenerationInfo::getHeadId ( ) const

◆ getName()

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

Here is the caller graph for this function:

◆ getPortrait()

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

◆ getSkin()

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

Here is the caller graph for this function:

◆ setFace()

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

Here is the caller graph for this function:

◆ setName()

void Engines::KotOR2::CharacterGenerationInfo::setName ( const Common::UString name)

◆ setSkin()

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

Here is the caller graph for this function:

Member Data Documentation

◆ _class

Class Engines::KotOR2::CharacterGenerationInfo::_class
private

Definition at line 78 of file chargeninfo.h.

Referenced by getClass().

◆ _face

unsigned int Engines::KotOR2::CharacterGenerationInfo::_face
private

Definition at line 80 of file chargeninfo.h.

Referenced by getFace(), getFaceId(), getHeadId(), getPortrait(), and setFace().

◆ _gender

Gender Engines::KotOR2::CharacterGenerationInfo::_gender
private

Definition at line 77 of file chargeninfo.h.

Referenced by getBodyId(), getBodyTextureId(), getFaceId(), getGender(), getHeadId(), and getPortrait().

◆ _name

Common::UString Engines::KotOR2::CharacterGenerationInfo::_name
private

Definition at line 81 of file chargeninfo.h.

Referenced by getName(), and setName().

◆ _skin

Skin Engines::KotOR2::CharacterGenerationInfo::_skin
private

Definition at line 79 of file chargeninfo.h.

Referenced by getBodyTextureId(), getFaceId(), getHeadId(), getPortrait(), getSkin(), and setSkin().


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