42 info->_face = std::rand() % 5;
57 info->_face = std::rand() % 5;
72 info->_face = std::rand() % 5;
87 info->_face = std::rand() % 5;
102 info->_face = std::rand() % 5;
117 info->_face = std::rand() % 5;
196 creature->createPC(*
this);
213 _body->playAnimation(
"pause1",
true, -1);
static CharacterGenerationInfo * createRandomMaleScout()
static CharacterGenerationInfo * createRandomMaleScoundrel()
void operator=(const CharacterGenerationInfo &info)
A class holding an UTF-8 string.
void reset(PointerType o=0)
Resets the pointer with the new value.
PointerType release()
Returns the plain pointer value and releases ScopedPtr.
UString composeString(T value)
Convert any POD integer, float/double or bool type into a string.
Skin getSkin() const
Get the skin type of the character.
void setName(const Common::UString &name)
Set the name of the Character.
Utility templates and functions for working with strings and streams.
Graphics::Aurora::Model * getModel()
Common::ScopedPtr< Graphics::Aurora::Model > _body
Basic exceptions to throw.
static CharacterGenerationInfo * createRandomMaleSoldier()
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,...)
Creature * getCharacter() const
A scoped plain pointer, allowing pointer-y access and normal deletion.
void setFace(uint8 face)
Set the face index of the character.
Graphics::Aurora::Model * _head
CharacterGenerationInfo()
static Common::UString getBodyMeshString(Gender gender, Class charClass, char state='b')
Generate a string for the body mesh.
void setSkin(Skin)
Set the skin type of the Character.
PointerType get() const
Returns the plain pointer value.
static CharacterGenerationInfo * createRandomFemaleScoundrel()
static CharacterGenerationInfo * createRandomFemaleScout()
Gender getGender() const
Get the gender of the Character.
Class getClass() const
Get the class of the character, defined in types.h.
Graphics::Aurora::Model * loadModelObject(const Common::UString &resref, const Common::UString &texture)
uint8_t getFace() const
Get the current face index of the character.
const Common::UString & getName() const
Get the name of the character.
static Common::UString getHeadMeshString(Gender gender, Skin skin, uint32 faceId)
Generate a string for the head mesh.
The class for storing character information for generation.
static CharacterGenerationInfo * createRandomFemaleSoldier()
#define GfxMan
Shortcut for accessing the graphics manager.
File for creating random names in the character generation.
Common::UString getPortrait() const
Get the name of the portrait of this character.
Generic Aurora engines model functions.