44 _static(false), _usable(true), _area(0) {
171 status(
"<%s> \"%s\"",
getName().getString().c_str(),
string.c_str());
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 setFacing(float facing)
Set the location's orientation.
void setPosition(float x, float y, float z)
Set the location's position.
void setArea(Area *)
Set the area this object is currently in.
virtual void hide()
Hide the object's model(s).
Utility functions for generating unique IDs.
void setArea(Area *area)
Set the location's area.
virtual void getPosition(float &x, float &y, float &z) const
Return the object's position within its area.
const Common::UString & getString(Language language, LanguageGender gender=kLanguageGenderCurrent) const
Get the string of that language.
virtual bool click(Object *triggerer=0)
The object was clicked.
Common::UString sound
ResRef of the sound to play while speaking this entry.
bool isClickable() const
Can the player click the object?
void exceptionDispatcherWarning(const char *s,...)
Exception dispatcher that prints the exception as a warning, and adds another reason on top...
virtual void unloadModel()
Unload the object's model(s).
const Line * getOneLiner() const
Return the first active non-branching entry.
Sound::ChannelHandle _sound
The currently playing object sound.
Basic exceptions to throw.
const char * c_str() const
Return the (utf8 encoded) string data.
const std::list< uint32 > & getIDs() const
Return the object's model IDs.
virtual void getOrientation(float &x, float &y, float &z, float &angle) const
Return the object's orientation.
Utility templates and functions.
virtual void show()
Show the object's model(s).
Aurora::LocString _description
The object's description.
An object in a The Witcher area.
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.
The global sound manager, handling all sound output.
bool empty() const
Is the string empty?
ObjectType _type
The object's type.
#define SoundMan
Shortcut for accessing the sound manager.
bool _static
Is the object static?
virtual void refreshLocalized()
Refresh all localized strings.
bool _usable
Is the object usable?
Sound::ChannelHandle playSound(const Common::UString &sound, Sound::SoundType soundType, bool loop, float volume, bool pitchVariance)
Play this sound resource.
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.
float _orientation[4]
The object's orientation.
Common::UString _conversation
The object's default conversation.
void status(const char *s,...)
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.
Generic Aurora engines utility functions.
Location getLocation() const
Create a Location out of the object's area, position and orientation.
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).
Handling BioWare's DLGs (dialog / conversation files).
std::list< uint32 > _ids
The object's model IDs.
uint32 generateIDNumber()
LocString text
The actual text of the entry.
const Aurora::LocString & getDescription() const
Return the object's description.
void speakString(const Common::UString &string, uint32 volume)
Speak the specified string.