Pioneer
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
SfxManager Class Reference

#include <Sfx.h>

Public Member Functions

 SfxManager ()
 
size_t GetNumberInstances (const SFX_TYPE t) const
 
void Cleanup ()
 

Static Public Member Functions

static void Add (const Body *, SFX_TYPE)
 
static void AddExplosion (Body *)
 
static void AddThrustSmoke (const Body *b, float speed, const vector3d &adjustpos)
 
static void TimeStepAll (const float timeStep, FrameId f)
 
static void RenderAll (Graphics::Renderer *r, FrameId f, const FrameId camFrame)
 
static void ToJson (Json &jsonObj, const FrameId f)
 
static void FromJson (const Json &jsonObj, FrameId f)
 
static void Init (Graphics::Renderer *r)
 
static void Uninit ()
 

Static Public Attributes

static std::unique_ptr< Graphics::MaterialdamageParticle
 
static std::unique_ptr< Graphics::MaterialecmParticle
 
static std::unique_ptr< Graphics::MaterialsmokeParticle
 
static std::unique_ptr< Graphics::MaterialexplosionParticle
 

Friends

struct Sfx
 

Constructor & Destructor Documentation

◆ SfxManager()

SfxManager::SfxManager ( )

Member Function Documentation

◆ Add()

void SfxManager::Add ( const Body b,
SFX_TYPE  t 
)
static
Here is the call graph for this function:

◆ AddExplosion()

void SfxManager::AddExplosion ( Body b)
static
Here is the call graph for this function:

◆ AddThrustSmoke()

void SfxManager::AddThrustSmoke ( const Body b,
float  speed,
const vector3d adjustpos 
)
static
Here is the call graph for this function:

◆ Cleanup()

void SfxManager::Cleanup ( )
Here is the call graph for this function:

◆ FromJson()

void SfxManager::FromJson ( const Json jsonObj,
FrameId  f 
)
static
Here is the call graph for this function:

◆ GetNumberInstances()

size_t SfxManager::GetNumberInstances ( const SFX_TYPE  t) const
inline

◆ Init()

void SfxManager::Init ( Graphics::Renderer r)
static
Here is the call graph for this function:

◆ RenderAll()

void SfxManager::RenderAll ( Graphics::Renderer r,
FrameId  f,
const FrameId  camFrame 
)
static
Here is the call graph for this function:

◆ TimeStepAll()

void SfxManager::TimeStepAll ( const float  timeStep,
FrameId  f 
)
static
Here is the call graph for this function:

◆ ToJson()

void SfxManager::ToJson ( Json jsonObj,
const FrameId  f 
)
static
Here is the call graph for this function:

◆ Uninit()

void SfxManager::Uninit ( )
static

Friends And Related Symbol Documentation

◆ Sfx

friend struct Sfx
friend

Member Data Documentation

◆ damageParticle

std::unique_ptr< Graphics::Material > SfxManager::damageParticle
static

◆ ecmParticle

std::unique_ptr< Graphics::Material > SfxManager::ecmParticle
static

◆ explosionParticle

std::unique_ptr< Graphics::Material > SfxManager::explosionParticle
static

◆ smokeParticle

std::unique_ptr< Graphics::Material > SfxManager::smokeParticle
static

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