42 switch (
info->_skin) {
44 info->_face = std::rand() % 2;
47 info->_face = std::rand() % 5;
64 switch (
info->_skin) {
66 info->_face = std::rand() % 2;
69 info->_face = std::rand() % 5;
86 switch (
info->_skin) {
88 info->_face = std::rand() % 2;
91 info->_face = std::rand() % 5;
108 switch (
info->_skin) {
110 info->_face = std::rand() % 2;
113 info->_face = std::rand() % 5;
130 switch (
info->_skin) {
132 info->_face = std::rand() % 2;
135 info->_face = std::rand() % 5;
152 switch (
info->_skin) {
154 info->_face = std::rand() % 2;
157 info->_face = std::rand() % 5;
404 creature->createPC(*
this);
431 else return _face + 6;
const Common::UString & getName() const
Get the name of the character.
A class holding an UTF-8 string.
PointerType release()
Returns the plain pointer value and releases ScopedPtr.
static CharacterGenerationInfo * createRandomMaleGuardian()
UString composeString(T value)
Convert any POD integer, float/double or bool type into a string.
The KotOR 2 character generation info.
Utility templates and functions for working with strings and streams.
void setFace(unsigned int face)
Set the face index of the character.
A simple scoped smart pointer template.
void setSkin(Skin skin)
Set the skin type of the Character.
static CharacterGenerationInfo * createRandomMaleSentinel()
Basic exceptions to throw.
Common::UString getHeadId() const
Get the Id for the head mesh.
Common::UString getBodyId() const
Get the Id for the body mesh.
unsigned int getFace() const
Get the current face index of the character.
LTR File, which is used when generating player names.
Common::UString generateRandomName(size_t maxLetters) const
Generate a random name from the ltr file.
void info(const char *s,...)
static CharacterGenerationInfo * createRandomFemaleGuardian()
Skin getSkin() const
Get the skin type of the character.
static CharacterGenerationInfo * createRandomMaleConsular()
A scoped plain pointer, allowing pointer-y access and normal deletion.
unsigned int getFaceId() const
Get the face id regarding the skin and gender.
static CharacterGenerationInfo * createRandomFemaleSentinel()
Common::UString getBodyTextureId() const
Get the Id for the body mesh texture.
Common::UString getPortrait() const
CharacterGenerationInfo()
void setName(const Common::UString &name)
Set the name of the Character.
static CharacterGenerationInfo * createRandomFemaleConsular()
Creature * getCharacter() const
Create a creature object from the info.
File for creating random names in the character generation.