OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
WorldSound Class Referencefinal

#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
 

Detailed Description

Definition at line 21 of file worldsound.h.

Constructor & Destructor Documentation

◆ WorldSound()

WorldSound::WorldSound ( GameSession game,
World world 
)

Definition at line 61 of file worldsound.cpp.

◆ ~WorldSound()

WorldSound::~WorldSound ( )

Definition at line 67 of file worldsound.cpp.

Member Function Documentation

◆ addDlgSound()

Sound WorldSound::addDlgSound ( std::string_view  s,
const Tempest::Vec3 &  pos,
float  range,
uint64_t &  timeLen 
)

Definition at line 114 of file worldsound.cpp.

◆ addSound()

void WorldSound::addSound ( const zenkit::VSound &  vob)

Definition at line 86 of file worldsound.cpp.

◆ addZone()

void WorldSound::addZone ( const zenkit::VZoneMusic &  vob)

Definition at line 77 of file worldsound.cpp.

◆ aiOutput()

void WorldSound::aiOutput ( const Tempest::Vec3 &  pos,
std::string_view  outputname 
)

Definition at line 349 of file worldsound.cpp.

◆ canSeeSource()

bool WorldSound::canSeeSource ( const Tempest::Vec3 &  npc) const

Definition at line 339 of file worldsound.cpp.

◆ execTriggerEvent()

bool WorldSound::execTriggerEvent ( const TriggerEvent e)

Definition at line 209 of file worldsound.cpp.

◆ isInListenerRange()

bool WorldSound::isInListenerRange ( const Tempest::Vec3 &  pos,
float  sndRgn 
) const

Definition at line 334 of file worldsound.cpp.

◆ setDefaultZone()

void WorldSound::setDefaultZone ( const zenkit::VZoneMusic &  vob)

Definition at line 70 of file worldsound.cpp.

◆ tick()

void WorldSound::tick ( Npc player)

Definition at line 155 of file worldsound.cpp.

Friends And Related Symbol Documentation

◆ Sound

friend class Sound
friend

Definition at line 92 of file worldsound.h.

Member Data Documentation

◆ talkRange

const float WorldSound::talkRange = 2000
static

Definition at line 40 of file worldsound.h.


The documentation for this class was generated from the following files: