25 #ifndef ENGINES_WITCHER_OBJECT_H 26 #define ENGINES_WITCHER_OBJECT_H 71 const std::list<uint32> &
getIDs()
const;
103 virtual void getPosition(
float &x,
float &y,
float &z)
const;
105 virtual void getOrientation(
float &x,
float &y,
float &z,
float &angle)
const;
108 virtual void setPosition(
float x,
float y,
float z);
110 virtual void setOrientation(
float x,
float y,
float z,
float angle);
117 virtual void enter();
118 virtual void leave();
168 #endif // ENGINES_WITCHER_OBJECT_H
ObjectType getType() const
Return the exact type of the object.
void stopSound()
Stop the current object sound.
Area * getArea() const
Return the area this object is currently in.
An area in The Witcher, holding all objects and area geometry within, as well as general area propert...
virtual void setPosition(float x, float y, float z)
Set the object's position within its area.
const Common::UString & getConversation() const
Return the object's default conversation (DLG).
A class holding an UTF-8 string.
void playSound(const Common::UString &sound, bool pitchVariance=false)
Play an object sound.
An object within a Witcher area.
void setArea(Area *)
Set the area this object is currently in.
virtual void hide()
Hide the object's model(s).
Basic The Witcher type definitions.
virtual void getPosition(float &x, float &y, float &z) const
Return the object's position within its area.
virtual bool click(Object *triggerer=0)
The object was clicked.
bool isClickable() const
Can the player click the object?
virtual void unloadModel()
Unload the object's model(s).
Sound::ChannelHandle _sound
The currently playing object sound.
const std::list< uint32 > & getIDs() const
Return the object's model IDs.
An object containing scripts.
virtual void getOrientation(float &x, float &y, float &z, float &angle) const
Return the object's orientation.
virtual void show()
Show the object's model(s).
Aurora::LocString _description
The object's description.
bool isUsable() const
Can the object be used by the PC?
const Aurora::LocString & getName() const
Return the object's name.
Common::UString _uniqueID
A globally unique ID.
virtual void highlight(bool enabled)
(Un)Highlight the object.
Low-level type definitions to handle fixed width types portably.
ObjectType _type
The object's type.
bool _static
Is the object static?
Handling BioWare's localized strings.
virtual void refreshLocalized()
Refresh all localized strings.
bool _usable
Is the object usable?
virtual void enter()
The cursor entered the object.
virtual void setOrientation(float x, float y, float z, float angle)
Set the object's orientation.
void speakOneLiner(Common::UString conv, Object *tokenTarget=0)
Speak an one-liner from the specified conversation file.
float _position[3]
The object's position.
A handle to a sound channel.
float _orientation[4]
The object's orientation.
Common::UString _conversation
The object's default conversation.
bool isStatic() const
Is the object static (not manipulable at all)?
Area * _area
The area the object is currently in.
Aurora::LocString _name
The object's name.
Location getLocation() const
Create a Location out of the object's area, position and orientation.
A location within a The Witcher area.
const Common::UString & getUniqueID() const
Return the object's globally unique ID.
virtual void leave()
The cursor left the object.
virtual void loadModel()
Load the object's model(s).
std::list< uint32 > _ids
The object's model IDs.
const Aurora::LocString & getDescription() const
Return the object's description.
void speakString(const Common::UString &string, uint32 volume)
Speak the specified string.