25 #ifndef ENGINES_NWN_SITUATED_H 26 #define ENGINES_NWN_SITUATED_H 55 virtual bool isOpen()
const = 0;
119 #endif // ENGINES_NWN_SITUATED_H virtual void loadAppearance()=0
Load appearance-specific properties.
virtual void setLocked(bool locked)
Lock/Unlock the situated object.
A class holding an UTF-8 string.
Object * getLastClosedBy() const
Return the object that last closed this situated object.
Situated(ObjectType type)
bool _locked
Is the situated object locked?
Object * getLastOpenedBy() const
Return the object that last opened this situated object.
void load(const Aurora::GFF3Struct &instance, const Aurora::GFF3Struct *blueprint=0)
Load the situated object from an instance and its blueprint.
Common::UString _soundClosed
The sound the object makes when closed.
Common::ScopedPtr< Graphics::Aurora::Model > _model
The situated object's model.
A simple scoped smart pointer template.
virtual bool isOpen() const =0
Is the situated object open?
void loadProperties(const Aurora::GFF3Struct &gff)
Basic Aurora graphics types.
Common::UString _soundOpened
The sound the object makes when opened.
void unloadModel()
Unload the situated object's model.
void setPosition(float x, float y, float z)
Set the situated object's position.
Common::UString _soundLocked
The sound the object makes when locked.
Common::UString _soundDestroyed
The sound the object makes when destroyed.
Object * _lastClosedBy
The object that last closed this situated object.
uint32 _appearanceID
The index within the situated appearance 2DA.
uint32 _soundAppType
The index within the situated sounds 2DA.
void setOrientation(float x, float y, float z, float angle)
Set the situated object's orientation.
Object * _lastUsedBy
The object that last used this situated object.
void loadPortrait(const Aurora::GFF3Struct &gff)
ObjectType
Object type, matches the bitfield in nwscript.nss.
An object in a Neverwinter Nights area.
Object * getLastUsedBy() const
Return the object that last used this situated object.
Basic type definitions to handle files used in BioWare's Aurora engine.
Object * _lastOpenedBy
The object that last opened this situated object.
virtual void loadObject(const Aurora::GFF3Struct &gff)=0
Load object-specific properties.
bool isLocked() const
Is the situated object locked?
void loadModel()
Load the situated object's model.
bool createTooltip(Tooltip::Type type)
Create an empty tooltip.
Common::UString _soundUsed
The sound the object makes when used.
void show()
Show the situated object's model.
void hide()
Hide the situated object's model.
Common::UString _modelName
The model's resource name.