25 #ifndef ENGINES_NWN2_CREATURE_H 26 #define ENGINES_NWN2_CREATURE_H 211 std::vector<Class> &classes,
uint8 &hitDice);
228 #endif // ENGINES_NWN2_CREATURE_H
uint16 getClassLevel(uint32 classID) const
Get the creature's level for this class.
uint8 _appearanceHead
The model variant used for the head.
int32 _baseHP
The creature's base maximum health points.
bool hasFeat(uint32 feat) const
Does the creature have this feat?
A class holding an UTF-8 string.
uint8 getGoodEvil() const
void init()
Init the creature.
static Aurora::GFF3File * openPC(const Common::UString &bic, bool local)
void load(const Aurora::GFF3Struct &creature)
Load from a creature instance.
void setSubRace(uint32 subRace)
Set the creature's subrace.
uint32 getGender() const
Get the creature's gender.
std::vector< uint32 > _feats
The creature's feats.
Common::PtrList< Graphics::Aurora::Model > ModelParts
uint32 _appearanceID
The creature's general appearance.
void loadModel()
Load the creature's model.
bool click(Object *triggerer=0)
The creature was clicked.
int32 _currentHP
The creature's current health points.
uint32 classID
Index into classes.2da.
An object within a NWN2 area.
Common::UString _lastName
The creature's last name.
void loadProperties(const Aurora::GFF3Struct &gff)
Load general creature properties.
bool loadArmorModel(const Common::UString &body, const Common::UString &armor, uint8 visualType, uint8 variation)
A list storing pointer to objects, with automatic deletion.
uint8 getAbility(Ability ability) const
Return a creature's ability score.
void unloadModel()
Unload the creature's model.
void leave()
The cursor left the creature.
uint8 getHitDice() const
Returns the number of hit dice, which is effectively the total number of levels.
Common::UString getBaseModel(const Common::UString &base)
uint32 _age
The creature's age.
void highlight(bool enabled)
(Un)Highlight the creature.
Basic Aurora graphics types.
uint32 getRace() const
Return the creature's race value.
uint16 level
Levels of that class.
Basic Neverwinter Nights 2 type definitions.
uint8 _appearanceFHair
The model variant used for female hair.
void hide()
Hide the creature's model.
void loadCharacter(const Common::UString &bic, bool local)
Load from a character file.
uint32 getAge() const
Return the creature's age.
A GFF (generic file format) V3.2/V3.3 file, found in all Aurora games except Sonic Chronicles: The Da...
bool _isDM
Is the creature a DM?
bool _isPC
Is the creature a PC?
Low-level type definitions to handle fixed width types portably.
uint8 _goodEvil
The creature's good/evil value (0-100).
Common::UString _deity
The creature's deity.
int8 getSkillRank(uint32 skill) const
Return the creature's rank in this skill.
void setGender(uint32 gender)
Set the creature's gender.
uint32 _gender
The creature's gender.
bool isPC() const
Is the creature a player character?
void getClass(uint32 position, uint32 &classID, uint16 &level) const
Get the creature's class and level at that class slot position.
bool isDM() const
Is the creature a dungeon master?
bool loadHairModel(uint8 appearance)
uint8 _lawChaos
The creature's law/chaos value (0-100).
uint32 _xp
The creature's experience.
uint8 _hitDice
The creature's hit dice.
Basic type definitions to handle files used in BioWare's Aurora engine.
uint8 _appearanceMHair
The model variant used for male hair.
uint32 _subRace
The creature's subrace.
int32 getCurrentHP() const
Return the current HP this creature has.
int32 _bonusHP
The creature's bonus health points.
std::vector< Class > _classes
The creature's classes.
std::vector< int8 > _skills
The creature's skills.
void enter()
The cursor entered the creature.
uint8 _abilities[kAbilityMAX]
The creature's abilities.
An object in a Neverwinter Nights 2 area.
const Common::UString & getLastName() const
Return the creature's last name.
void show()
Show the creature's model.
void setRace(uint32 race)
Set the creature's race.
Common::UString _firstName
The creature's first name.
uint32 getSubRace() const
Return the creature's subrace value.
bool loadHeadModel(uint8 appearance)
void setOrientation(float x, float y, float z, float angle)
Set the creature's orientation.
bool isFemale() const
Is the creature female, do we need female dialogs tokens?
int32 getMaxHP() const
Return the max HP this creature can have.
uint8 getLawChaos() const
static void loadClasses(const Aurora::GFF3Struct &gff, std::vector< Class > &classes, uint8 &hitDice)
Load the creature's classes.
Creature()
Create a dummy creature instance.
void setPosition(float x, float y, float z)
Set the creature's position.
const Common::UString & getDeity() const
Get the creature's deity.
uint32 _race
The creature's race.
uint32 getXP() const
Return the creature's XP.
const Common::UString & getFirstName() const
Return the creature's first name.