_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <particle.h>
Public Member Functions | |
int | getSmokeDrawLevel () const |
int | getDestroyDrawLevel () const |
void | setSmokeDrawLevel (int value) |
void | setDestroyDrawLevel (int value) |
chunkparticle.cpp - The chunk particle. | |
CChunkParticle (CPosition position, GraphicAnimation *smokeAnimation, GraphicAnimation *debrisAnimation, GraphicAnimation *destroyAnimation, int minVelocity=0, int maxVelocity=400, int minTrajectoryAngle=77, int maxTTL=0, int drawlevel=0) | |
virtual | ~CChunkParticle () |
virtual bool | isVisible (const CViewport &vp) const |
virtual void | draw () |
virtual void | update (int ticks) |
virtual CParticle * | clone () |
![]() | |
CParticle (CPosition position, int drawlevel=0) | |
virtual | ~CParticle () |
void | destroy () |
bool | isDestroyed () |
int | getDrawLevel () const |
void | setDrawLevel (int value) |
Protected Attributes | |
CPosition | initialPos |
int | initialVelocity |
float | trajectoryAngle |
int | maxTTL |
int | nextSmokeTicks |
int | lifetime |
int | age |
int | minVelocity |
int | maxVelocity |
int | minTrajectoryAngle |
float | height |
int | smokeDrawLevel |
int | destroyDrawLevel |
GraphicAnimation * | debrisAnimation |
GraphicAnimation * | smokeAnimation |
GraphicAnimation * | destroyAnimation |
struct { | |
float x | |
float y | |
} | direction |
![]() | |
CPosition | pos |
bool | destroyed |
int | drawLevel |
CChunkParticle::CChunkParticle | ( | CPosition | position, |
GraphicAnimation * | smokeAnimation, | ||
GraphicAnimation * | debrisAnimation, | ||
GraphicAnimation * | destroyAnimation, | ||
int | minVelocity = 0 , |
||
int | maxVelocity = 400 , |
||
int | minTrajectoryAngle = 77 , |
||
int | maxTTL = 0 , |
||
int | drawlevel = 0 |
||
) |
|
virtual |
|
virtual |
Implements CParticle.
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Implements CParticle.
|
protected |
|
protected |
|
protected |
|
protected |
struct { ... } CChunkParticle::direction |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
float CChunkParticle::x |
float CChunkParticle::y |