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

#include <effects.h>

Public Member Functions

 Effects (const Con &con)
int spawn (const std::string &name, const Mat4 &at, const float vel[3]=nullptr, int view=3)
void move (int id, const Mat4 &at, const float vel[3]=nullptr)
bool alive (int id) const
const EffectDef * lookup (const std::string &name)
void stop (int id)
void step (float dt)
std::vector< Sprite > sprites () const
std::vector< MeshParticle > meshes () const
size_t particles () const
size_t running () const

Public Attributes

float water_level = -1e9f

Constructor & Destructor Documentation

◆ Effects()

obf::Effects::Effects ( const Con & con)
inlineexplicit

Member Function Documentation

◆ alive()

bool obf::Effects::alive ( int id) const
inline

◆ lookup()

const EffectDef * obf::Effects::lookup ( const std::string & name)
inline

◆ meshes()

std::vector< MeshParticle > obf::Effects::meshes ( ) const

◆ move()

void obf::Effects::move ( int id,
const Mat4 & at,
const float vel[3] = nullptr )

◆ particles()

size_t obf::Effects::particles ( ) const

◆ running()

size_t obf::Effects::running ( ) const
inline

◆ spawn()

int obf::Effects::spawn ( const std::string & name,
const Mat4 & at,
const float vel[3] = nullptr,
int view = 3 )

◆ sprites()

std::vector< Sprite > obf::Effects::sprites ( ) const

◆ step()

void obf::Effects::step ( float dt)

◆ stop()

void obf::Effects::stop ( int id)

Member Data Documentation

◆ water_level

float obf::Effects::water_level = -1e9f

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