xoreos
0.0.5
|
#include <creature.h>
Public Member Functions | |
Creature (const Common::UString &utc) | |
Load from a creature template. More... | |
~Creature () | |
bool | isPC () const |
Is the creature a player character? More... | |
Public Member Functions inherited from Engines::Witcher::Object | |
Object (ObjectType type=kObjectTypeInvalid) | |
virtual | ~Object () |
ObjectType | getType () const |
Return the exact type of the object. More... | |
virtual void | refreshLocalized () |
Refresh all localized strings. More... | |
virtual void | loadModel () |
Load the object's model(s). More... | |
virtual void | unloadModel () |
Unload the object's model(s). More... | |
virtual void | show () |
Show the object's model(s). More... | |
virtual void | hide () |
Hide the object's model(s). More... | |
const std::list< uint32 > & | getIDs () const |
Return the object's model IDs. More... | |
const Common::UString & | getUniqueID () const |
Return the object's globally unique ID. More... | |
const Aurora::LocString & | getName () const |
Return the object's name. More... | |
const Aurora::LocString & | getDescription () const |
Return the object's description. More... | |
const Common::UString & | getConversation () const |
Return the object's default conversation (DLG). More... | |
bool | isStatic () const |
Is the object static (not manipulable at all)? More... | |
bool | isUsable () const |
Can the object be used by the PC? More... | |
bool | isClickable () const |
Can the player click the object? More... | |
Area * | getArea () const |
Return the area this object is currently in. More... | |
void | setArea (Area *) |
Set the area this object is currently in. More... | |
virtual void | getPosition (float &x, float &y, float &z) const |
Return the object's position within its area. More... | |
virtual void | getOrientation (float &x, float &y, float &z, float &angle) const |
Return the object's orientation. More... | |
virtual void | setPosition (float x, float y, float z) |
Set the object's position within its area. More... | |
virtual void | setOrientation (float x, float y, float z, float angle) |
Set the object's orientation. More... | |
Location | getLocation () const |
Create a Location out of the object's area, position and orientation. More... | |
virtual void | enter () |
The cursor entered the object. More... | |
virtual void | leave () |
The cursor left the object. More... | |
virtual void | highlight (bool enabled) |
(Un)Highlight the object. More... | |
virtual bool | click (Object *triggerer=0) |
The object was clicked. More... | |
void | speakString (const Common::UString &string, uint32 volume) |
Speak the specified string. More... | |
void | speakOneLiner (Common::UString conv, Object *tokenTarget=0) |
Speak an one-liner from the specified conversation file. More... | |
void | stopSound () |
Stop the current object sound. More... | |
void | playSound (const Common::UString &sound, bool pitchVariance=false) |
Play an object sound. More... | |
Public Member Functions inherited from Aurora::NWScript::Object | |
Object () | |
uint32 | getID () const |
const Common::UString & | getTag () const |
Public Member Functions inherited from Aurora::NWScript::VariableContainer | |
VariableContainer () | |
virtual | ~VariableContainer () |
bool | hasVariable (const Common::UString &var) const |
Variable & | getVariable (const Common::UString &var, Type type=kTypeVoid) |
const Variable & | getVariable (const Common::UString &var) const |
void | setVariable (const Common::UString &var, const Variable &value) |
void | removeVariable (const Common::UString &var) |
void | clearVariables () |
Public Member Functions inherited from Engines::Witcher::ScriptContainer | |
ScriptContainer () | |
~ScriptContainer () | |
const Common::UString & | getScript (Script script) const |
bool | hasScript (Script script) const |
bool | runScript (Script script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference()) |
Private Member Functions | |
void | load (const Common::UString &utc) |
void | load (const Aurora::GFF3Struct &utc) |
Private Attributes | |
bool | _isPC |
Is the creature a PC? More... | |
Definition at line 38 of file creature.h.
Engines::Witcher::Creature::Creature | ( | const Common::UString & | utc | ) |
Load from a creature template.
Definition at line 37 of file creature.cpp.
References load().
Engines::Witcher::Creature::~Creature | ( | ) |
Definition at line 43 of file creature.cpp.
bool Engines::Witcher::Creature::isPC | ( | ) | const |
Is the creature a player character?
Definition at line 46 of file creature.cpp.
References _isPC.
Referenced by Engines::Witcher::ObjectContainer::toPC().
|
private |
Definition at line 50 of file creature.cpp.
References Aurora::GFF3File::getTopLevel(), Aurora::kFileTypeUTC, and MKTAG.
Referenced by Creature().
|
private |
Definition at line 56 of file creature.cpp.
References Engines::Witcher::Object::_description, _isPC, Engines::Witcher::Object::_name, Engines::Witcher::Object::_static, Aurora::NWScript::Object::_tag, Engines::Witcher::Object::_uniqueID, Aurora::GFF3Struct::getBool(), Aurora::GFF3Struct::getLocString(), Aurora::GFF3Struct::getString(), and Engines::Witcher::ScriptContainer::readScripts().
|
private |