OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
PfxEmitter Class Reference

#include <pfxemitter.h>

Public Member Functions

 PfxEmitter ()=default
 
 PfxEmitter (World &world, std::string_view name)
 
 PfxEmitter (World &world, const ParticleFx *decl)
 
 PfxEmitter (PfxObjects &obj, const ParticleFx *vob)
 
 PfxEmitter (World &world, const zenkit::VirtualObject &vob)
 
 ~PfxEmitter ()
 
 PfxEmitter (PfxEmitter &&)
 
PfxEmitteroperator= (PfxEmitter &&b)
 
 PfxEmitter (const PfxEmitter &)=delete
 
bool isEmpty () const
 
void setPosition (float x, float y, float z)
 
void setPosition (const Tempest::Vec3 &pos)
 
void setDirection (const Tempest::Matrix4x4 &pos)
 
void setObjMatrix (const Tempest::Matrix4x4 &mt)
 
void setActive (bool act)
 
bool isActive () const
 
void setLooped (bool loop)
 
void setMesh (const MeshObjects::Mesh *mesh, const Pose *pose)
 
void setTarget (const Npc *tg)
 
void setPhysicsEnable (World &physic, std::function< void(Npc &npc)> cb)
 
void setPhysicsDisable ()
 
uint64_t effectPrefferedTime () const
 
bool isAlive () const
 

Friends

class PfxBucket
 
class PfxObjects
 

Detailed Description

Definition at line 16 of file pfxemitter.h.

Constructor & Destructor Documentation

◆ PfxEmitter() [1/7]

PfxEmitter::PfxEmitter ( )
default

◆ PfxEmitter() [2/7]

PfxEmitter::PfxEmitter ( World world,
std::string_view  name 
)

Definition at line 19 of file pfxemitter.cpp.

◆ PfxEmitter() [3/7]

PfxEmitter::PfxEmitter ( World world,
const ParticleFx decl 
)

Definition at line 23 of file pfxemitter.cpp.

◆ PfxEmitter() [4/7]

PfxEmitter::PfxEmitter ( PfxObjects obj,
const ParticleFx vob 
)

Definition at line 27 of file pfxemitter.cpp.

◆ PfxEmitter() [5/7]

PfxEmitter::PfxEmitter ( World world,
const zenkit::VirtualObject &  vob 
)

Definition at line 37 of file pfxemitter.cpp.

◆ ~PfxEmitter()

PfxEmitter::~PfxEmitter ( )

Definition at line 55 of file pfxemitter.cpp.

◆ PfxEmitter() [6/7]

PfxEmitter::PfxEmitter ( PfxEmitter &&  b)

Definition at line 62 of file pfxemitter.cpp.

◆ PfxEmitter() [7/7]

PfxEmitter::PfxEmitter ( const PfxEmitter )
delete

Member Function Documentation

◆ effectPrefferedTime()

uint64_t PfxEmitter::effectPrefferedTime ( ) const

Definition at line 170 of file pfxemitter.cpp.

◆ isActive()

bool PfxEmitter::isActive ( ) const

Definition at line 130 of file pfxemitter.cpp.

◆ isAlive()

bool PfxEmitter::isAlive ( ) const

Definition at line 176 of file pfxemitter.cpp.

◆ isEmpty()

bool PfxEmitter::isEmpty ( ) const
inline

Definition at line 28 of file pfxemitter.h.

◆ operator=()

PfxEmitter & PfxEmitter::operator= ( PfxEmitter &&  b)

Definition at line 67 of file pfxemitter.cpp.

◆ setActive()

void PfxEmitter::setActive ( bool  act)

Definition at line 115 of file pfxemitter.cpp.

◆ setDirection()

void PfxEmitter::setDirection ( const Tempest::Matrix4x4 &  pos)

Definition at line 102 of file pfxemitter.cpp.

◆ setLooped()

void PfxEmitter::setLooped ( bool  loop)

Definition at line 138 of file pfxemitter.cpp.

◆ setMesh()

void PfxEmitter::setMesh ( const MeshObjects::Mesh mesh,
const Pose pose 
)

Definition at line 148 of file pfxemitter.cpp.

◆ setObjMatrix()

void PfxEmitter::setObjMatrix ( const Tempest::Matrix4x4 &  mt)

Definition at line 187 of file pfxemitter.cpp.

◆ setPhysicsDisable()

void PfxEmitter::setPhysicsDisable ( )

Definition at line 166 of file pfxemitter.cpp.

◆ setPhysicsEnable()

void PfxEmitter::setPhysicsEnable ( World physic,
std::function< void(Npc &npc)>  cb 
)

Definition at line 159 of file pfxemitter.cpp.

◆ setPosition() [1/2]

void PfxEmitter::setPosition ( const Tempest::Vec3 &  pos)

◆ setPosition() [2/2]

void PfxEmitter::setPosition ( float  x,
float  y,
float  z 
)

Definition at line 74 of file pfxemitter.cpp.

◆ setTarget()

void PfxEmitter::setTarget ( const Npc tg)

Definition at line 94 of file pfxemitter.cpp.

Friends And Related Symbol Documentation

◆ PfxBucket

friend class PfxBucket
friend

Definition at line 55 of file pfxemitter.h.

◆ PfxObjects

friend class PfxObjects
friend

Definition at line 56 of file pfxemitter.h.


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