25 #ifndef ENGINES_NWN_AREA_H 26 #define ENGINES_NWN_AREA_H 244 void click(
int x,
int y);
256 #endif // ENGINES_NWN_AREA_H Common::UString _resRef
The area's resref (resource ID).
std::vector< Common::UString > _musicBattleStinger
Battle music stingers.
void checkActive(int x=-1, int y=-1)
ObjectList _objects
List of all objects in the area.
void setMusicDayTrack(uint32 track)
Set the music track ID playing by day.
std::map< uint32, NWN::Object * > ObjectMap
const Common::UString & getResRef()
Return the area's resref (resource ID).
uint8 mainLight[2]
Overall colored lighting effects.
bool _highlightAll
Are we currently highlighting all objects?
const Common::UString & getEnvironmentMap() const
Return the area's environment map.
void playAmbientSound(Common::UString sound="")
Play the specified sound (or the area's default) as ambient sound.
A class holding an UTF-8 string.
void stopAmbientSound()
Stop the ambient sound.
std::list< Events::Event > _eventQueue
The event queue.
Graphics::Aurora::Model * model
The tile's model.
uint32 _height
Height of the area in tiles, as seen from top-down.
void loadProperties(const Aurora::GFF3Struct &props)
Sound::ChannelHandle _ambientSound
Sound handle of the currently playing sound.
void loadARE(const Aurora::GFF3Struct &are)
void show()
Show the area.
void removeFocus()
Forcibly remove the focus from the currently highlighted object.
Common::UString _musicDay
Music that plays by day.
An area in Neverwinter Nights, holding all objects and room tiles within, as well as general area pro...
void highlightAll(bool enabled)
Common::PtrList< NWN::Object > ObjectList
uint32 _musicDayTrack
Music track ID that plays by day.
void loadWaypoints(const Aurora::GFF3List &list)
uint32 height
The number of height transitions the tile is shifted up.
uint32 getMusicNightTrack() const
Return the music track ID playing by night.
void playAmbientMusic(Common::UString music="")
Play the specified music (or the area's default) as ambient music.
A list storing pointer to objects, with automatic deletion.
void loadPlaceables(const Aurora::GFF3List &list)
bool _visible
Is the area currently visible?
Common::UString _tilesetName
Name of the tileset.
float _ambientNightVol
Night ambient sound volume.
Common::UString _musicNight
Music that plays by night.
uint8 srcLight[2]
Flaming light sources.
uint32 getMusicBattleTrack() const
Return the music track ID playing in battle.
void setMusicNightTrack(uint32 track)
Set the music track ID playing by night.
Area(Module &module, const Common::UString &resRef)
Basic Aurora graphics types.
uint32 getMusicDayTrack() const
Return the music track ID playing by day.
Common::ScopedPtr< Tileset > _tileset
The actual tileset.
uint32 _musicBattleTrack
Music track ID that plays in battle.
void addEvent(const Events::Event &event)
Add a single event for consideration into the area event queue.
void loadCreatures(const Aurora::GFF3List &list)
void setActive(NWN::Object *object)
Common::UString _displayName
The area's localized display name.
void loadTile(const Aurora::GFF3Struct &t, Tile &tile)
std::vector< Tile > _tiles
The area's tiles.
Low-level type definitions to handle fixed width types portably.
A class that can be notified by the NotificationManager.
Common::UString _ambientNight
Ambient sound that plays by night.
A scoped plain pointer, allowing pointer-y access and normal deletion.
static Common::UString createDisplayName(const Common::UString &name)
void loadDoors(const Aurora::GFF3List &list)
bool animLoop[3]
Should the tile's AnimLoop0[123] play?
std::vector< const GFF3Struct * > GFF3List
const Common::UString & getDisplayName()
Return the area's localized display name.
A tileset in Neverwinter Nights.
void hide()
Hide the area.
Module * _module
The module this area is in.
An object in a Neverwinter Nights area.
void notifyCameraMoved()
Notify the area that the camera has been moved.
NWN::Object * _activeObject
The currently active (highlighted) object.
Basic type definitions to handle files used in BioWare's Aurora engine.
A handle to a sound channel.
Common::Mutex _mutex
Mutex securing access to the area.
void stopSound()
Stop all sounds.
Common::UString _musicBattle
Music that plays in battle.
const Tileset::Tile * tile
The actual tile within the tileset.
uint32 _musicNightTrack
Music track ID that plays by night.
ObjectMap _objectMap
Map of all non-static objects in the area.
void loadGIT(const Aurora::GFF3Struct &git)
uint32 tileID
The ID of the tile within the tileset.
NWN::Object * getObjectAt(int x, int y)
Orientation orientation
The orientation of the tile.
void processEventQueue()
Process the current event queue.
void stopAmbientMusic()
Stop the ambient music.
uint32 _width
Width of the area in tiles, as seen from top-down.
Sound::ChannelHandle _ambientMusic
Sound handle of the currently playing music.
Common::UString _ambientDay
Ambient sound that plays by day.
void setMusicBattleTrack(uint32 track)
Set the music track ID playing in battle.
float _ambientDayVol
Day ambient sound volume.
void loadObject(NWN::Object &object)
Orientation
Tile orientation.
const Common::UString & getName()
Return the area's localized name.