Otclient  14/8/2020
ParticleType Class Reference

#include <particletype.h>

Inheritance diagram for ParticleType:
Collaboration diagram for ParticleType:

Public Member Functions

 ParticleType ()
 
void load (const OTMLNodePtr &node)
 
std::string getName ()
 
- Public Member Functions inherited from LuaObject
 LuaObject ()
 
virtual ~LuaObject ()
 
template<typename T >
void connectLuaField (const std::string &field, const std::function< T > &f, bool pushFront=false)
 
template<typename... T>
int luaCallLuaField (const std::string &field, const T &... args)
 
template<typename R , typename... T>
callLuaField (const std::string &field, const T &... args)
 
template<typename... T>
void callLuaField (const std::string &field, const T &... args)
 
bool hasLuaField (const std::string &field)
 Returns true if the lua field exists. More...
 
template<typename T >
void setLuaField (const std::string &key, const T &value)
 Sets a field in this lua object. More...
 
template<typename T >
getLuaField (const std::string &key)
 Gets a field from this lua object. More...
 
void releaseLuaFieldsTable ()
 Release fields table reference. More...
 
void luaSetField (const std::string &key)
 Sets a field from this lua object, the value must be on the stack. More...
 
void luaGetField (const std::string &key)
 Gets a field from this lua object, the result is pushed onto the stack. More...
 
void luaGetMetatable ()
 Get object's metatable. More...
 
void luaGetFieldsTable ()
 Gets the table containing all stored fields of this lua object, the result is pushed onto the stack. More...
 
int getUseCount ()
 
std::string getClassName ()
 Returns the derived class name, its the same name used in Lua. More...
 
LuaObjectPtr asLuaObject ()
 
void operator= (const LuaObject &)
 
- Public Member Functions inherited from stdext::shared_object
 shared_object ()
 
virtual ~shared_object ()
 
void add_ref ()
 
void dec_ref ()
 
refcount_t ref_count ()
 
template<typename T >
stdext::shared_object_ptr< T > static_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > dynamic_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > const_self_cast ()
 

Protected Attributes

std::string pName
 
Size pStartSize
 
Size pFinalSize
 
float pMinPositionRadius
 
float pMaxPositionRadius
 
float pMinPositionAngle
 
float pMaxPositionAngle
 
float pMinVelocity
 
float pMaxVelocity
 
float pMinVelocityAngle
 
float pMaxVelocityAngle
 
float pMinAcceleration
 
float pMaxAcceleration
 
float pMinAccelerationAngle
 
float pMaxAccelerationAngle
 
float pMinDuration
 
float pMaxDuration
 
float pIgnorePhysicsAfter
 
std::vector< ColorpColors
 
std::vector< float > pColorsStops
 
TexturePtr pTexture
 
ParticleTypePtr particleType
 
Painter::CompositionMode pCompositionMode
 

Friends

class ParticleEmitter
 

Detailed Description

Definition at line 31 of file particletype.h.

Constructor & Destructor Documentation

◆ ParticleType()

ParticleType::ParticleType ( )

Definition at line 26 of file particletype.cpp.

Member Function Documentation

◆ getName()

std::string ParticleType::getName ( )
inline

Definition at line 38 of file particletype.h.

Here is the caller graph for this function:

◆ load()

void ParticleType::load ( const OTMLNodePtr node)

Definition at line 48 of file particletype.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ ParticleEmitter

friend class ParticleEmitter
friend

Definition at line 69 of file particletype.h.

Member Data Documentation

◆ particleType

ParticleTypePtr ParticleType::particleType
protected

Definition at line 66 of file particletype.h.

◆ pColors

std::vector<Color> ParticleType::pColors
protected

Definition at line 63 of file particletype.h.

◆ pColorsStops

std::vector<float> ParticleType::pColorsStops
protected

Definition at line 64 of file particletype.h.

◆ pCompositionMode

Painter::CompositionMode ParticleType::pCompositionMode
protected

Definition at line 67 of file particletype.h.

◆ pFinalSize

Size ParticleType::pFinalSize
protected

Definition at line 45 of file particletype.h.

◆ pIgnorePhysicsAfter

float ParticleType::pIgnorePhysicsAfter
protected

Definition at line 60 of file particletype.h.

◆ pMaxAcceleration

float ParticleType::pMaxAcceleration
protected

Definition at line 56 of file particletype.h.

◆ pMaxAccelerationAngle

float ParticleType::pMaxAccelerationAngle
protected

Definition at line 57 of file particletype.h.

◆ pMaxDuration

float ParticleType::pMaxDuration
protected

Definition at line 60 of file particletype.h.

◆ pMaxPositionAngle

float ParticleType::pMaxPositionAngle
protected

Definition at line 49 of file particletype.h.

◆ pMaxPositionRadius

float ParticleType::pMaxPositionRadius
protected

Definition at line 48 of file particletype.h.

◆ pMaxVelocity

float ParticleType::pMaxVelocity
protected

Definition at line 52 of file particletype.h.

◆ pMaxVelocityAngle

float ParticleType::pMaxVelocityAngle
protected

Definition at line 53 of file particletype.h.

◆ pMinAcceleration

float ParticleType::pMinAcceleration
protected

Definition at line 56 of file particletype.h.

◆ pMinAccelerationAngle

float ParticleType::pMinAccelerationAngle
protected

Definition at line 57 of file particletype.h.

◆ pMinDuration

float ParticleType::pMinDuration
protected

Definition at line 60 of file particletype.h.

◆ pMinPositionAngle

float ParticleType::pMinPositionAngle
protected

Definition at line 49 of file particletype.h.

◆ pMinPositionRadius

float ParticleType::pMinPositionRadius
protected

Definition at line 48 of file particletype.h.

◆ pMinVelocity

float ParticleType::pMinVelocity
protected

Definition at line 52 of file particletype.h.

◆ pMinVelocityAngle

float ParticleType::pMinVelocityAngle
protected

Definition at line 53 of file particletype.h.

◆ pName

std::string ParticleType::pName
protected

Definition at line 42 of file particletype.h.

◆ pStartSize

Size ParticleType::pStartSize
protected

Definition at line 45 of file particletype.h.

◆ pTexture

TexturePtr ParticleType::pTexture
protected

Definition at line 65 of file particletype.h.


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