|
OpenGothic
Open source reimplementation of Gothic I and II
|
#include <worldsound.h>
Classes | |
| struct | WSound |
| struct | Zone |
Public Member Functions | |
| WorldSound (GameSession &game, World &world) | |
| ~WorldSound () | |
| void | setDefaultZone (const zenkit::VZoneMusic &vob) |
| void | addZone (const zenkit::VZoneMusic &vob) |
| void | addSound (const zenkit::VSound &vob) |
| Sound | addDlgSound (std::string_view s, const Tempest::Vec3 &pos, float range, uint64_t &timeLen) |
| void | aiOutput (const Tempest::Vec3 &pos, std::string_view outputname) |
| void | tick (Npc &player) |
| bool | execTriggerEvent (const TriggerEvent &e) |
| bool | isInListenerRange (const Tempest::Vec3 &pos, float sndRgn) const |
| bool | canSeeSource (const Tempest::Vec3 &npc) const |
Static Public Attributes | |
| static const float | talkRange = 2000 |
Friends | |
| class | Sound |
Definition at line 21 of file worldsound.h.
| WorldSound::WorldSound | ( | GameSession & | game, |
| World & | world | ||
| ) |
Definition at line 61 of file worldsound.cpp.
| WorldSound::~WorldSound | ( | ) |
Definition at line 67 of file worldsound.cpp.
| Sound WorldSound::addDlgSound | ( | std::string_view | s, |
| const Tempest::Vec3 & | pos, | ||
| float | range, | ||
| uint64_t & | timeLen | ||
| ) |
Definition at line 114 of file worldsound.cpp.
| void WorldSound::addSound | ( | const zenkit::VSound & | vob | ) |
Definition at line 86 of file worldsound.cpp.
| void WorldSound::addZone | ( | const zenkit::VZoneMusic & | vob | ) |
Definition at line 77 of file worldsound.cpp.
| void WorldSound::aiOutput | ( | const Tempest::Vec3 & | pos, |
| std::string_view | outputname | ||
| ) |
Definition at line 349 of file worldsound.cpp.
| bool WorldSound::canSeeSource | ( | const Tempest::Vec3 & | npc | ) | const |
Definition at line 339 of file worldsound.cpp.
| bool WorldSound::execTriggerEvent | ( | const TriggerEvent & | e | ) |
Definition at line 209 of file worldsound.cpp.
| bool WorldSound::isInListenerRange | ( | const Tempest::Vec3 & | pos, |
| float | sndRgn | ||
| ) | const |
Definition at line 334 of file worldsound.cpp.
| void WorldSound::setDefaultZone | ( | const zenkit::VZoneMusic & | vob | ) |
Definition at line 70 of file worldsound.cpp.
| void WorldSound::tick | ( | Npc & | player | ) |
Definition at line 155 of file worldsound.cpp.
|
friend |
Definition at line 92 of file worldsound.h.
|
static |
Definition at line 40 of file worldsound.h.