OpenBF1942-Plus
Refractor 1, rebuilt from scratch
Loading...
Searching...
No Matches
obf::Sounds Class Reference

#include <sound.h>

Classes

struct  Running

Public Member Functions

 Sounds (const Vfs &vfs, const Con &con, int rate)
void shot (const std::string &tmpl, const float pos[3], int source, float now)
void reload (const std::string &tmpl, const float pos[3])
void effect (const std::string &tmpl, const float pos[3])
void soldier (const std::string &script, int patch, const float pos[3], const std::string &tmpl)
void tick (float now)
void loops (const std::vector< Running > &running)
std::string script (const std::string &tmpl, const std::string &type="", bool children=true) const

Public Attributes

Mixer mixer

Constructor & Destructor Documentation

◆ Sounds()

obf::Sounds::Sounds ( const Vfs & vfs,
const Con & con,
int rate )
inline

Member Function Documentation

◆ effect()

void obf::Sounds::effect ( const std::string & tmpl,
const float pos[3] )

◆ loops()

void obf::Sounds::loops ( const std::vector< Running > & running)

◆ reload()

void obf::Sounds::reload ( const std::string & tmpl,
const float pos[3] )

◆ script()

std::string obf::Sounds::script ( const std::string & tmpl,
const std::string & type = "",
bool children = true ) const

◆ shot()

void obf::Sounds::shot ( const std::string & tmpl,
const float pos[3],
int source,
float now )

◆ soldier()

void obf::Sounds::soldier ( const std::string & script,
int patch,
const float pos[3],
const std::string & tmpl )

◆ tick()

void obf::Sounds::tick ( float now)

Member Data Documentation

◆ mixer

Mixer obf::Sounds::mixer

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