#include <Particles.h>
List of all members.
Public Member Functions |
| Particles (Bitmap *bitmap, int np, const Vec3 &base_loc, const Vec3 &vel, float base_speed=500.0f, float drag=1.0f, float scale=1.0f, float bloom=0.0f, float decay=100.0f, float release=1.0f, bool cont=false, bool trail=true, bool rise=false, int blend=3, int nframes=1) |
virtual | ~Particles () |
virtual void | Render (Video *video, DWORD flags) |
virtual void | ExecFrame (double seconds) |
virtual void | TranslateBy (const Point &ref) |
virtual bool | CheckVisibility (Projector &projector) |
virtual bool | IsEmitting () const |
virtual void | StopEmitting () |
| Graphic () |
virtual | ~Graphic () |
int | operator== (const Graphic &g) const |
int | operator< (const Graphic &g) const |
int | operator<= (const Graphic &g) const |
virtual void | Update () |
virtual void | SetOrientation (const Matrix &o) |
virtual int | CollidesWith (Graphic &o) |
int | Identity () const |
const char * | Name () const |
bool | IsVisible () const |
void | SetVisible (bool v) |
float | Radius () const |
Point | Location () const |
virtual void | MoveTo (const Point &p) |
virtual float | Depth () const |
virtual void | SetDepth (float d) |
virtual int | IsInfinite () const |
virtual void | SetInfinite (bool b) |
virtual int | IsForeground () const |
virtual void | SetForeground (bool f) |
virtual int | IsBackground () const |
virtual void | SetBackground (bool b) |
virtual int | Hidden () const |
virtual int | Life () const |
virtual void | Destroy () |
virtual void | Hide () |
virtual void | Show () |
virtual bool | Luminous () const |
virtual void | SetLuminous (bool l) |
virtual bool | Translucent () const |
virtual bool | CastsShadow () const |
virtual void | SetShadow (bool s) |
virtual bool | IsSolid () const |
virtual bool | IsSprite () const |
virtual bool | IsBolt () const |
virtual bool | IsQuad () const |
virtual void | ProjectScreenRect (Projector *p) |
const Rect & | ScreenRect () const |
virtual Scene * | GetScene () const |
virtual void | SetScene (Scene *s) |
virtual int | CheckRayIntersection (Point pt, Point vpn, double len, Point &ipt, bool treat_translucent_polys_as_solid=true) |
Additional Inherited Members |
enum | TYPE {
OTHER,
SOLID,
SPRITE,
BOLT,
QUAD
} |
enum | RENDER_FLAGS {
RENDER_SOLID = 0x0001,
RENDER_ALPHA = 0x0002,
RENDER_ADDITIVE = 0x0004,
RENDER_FIRST_LIGHT = 0x1000,
RENDER_ADD_LIGHT = 0x2000
} |
static const char * | TYPENAME () |
static int | Nearer (Graphic *a, Graphic *b) |
static int | Farther (Graphic *a, Graphic *b) |
static int | id_key = 1 |
Detailed Description
Definition at line 25 of file Particles.h.
Constructor & Destructor Documentation
Particles::Particles |
( |
Bitmap * |
bitmap, |
|
|
int |
np, |
|
|
const Vec3 & |
base_loc, |
|
|
const Vec3 & |
vel, |
|
|
float |
base_speed = 500.0f , |
|
|
float |
drag = 1.0f , |
|
|
float |
scale = 1.0f , |
|
|
float |
bloom = 0.0f , |
|
|
float |
decay = 100.0f , |
|
|
float |
release = 1.0f , |
|
|
bool |
cont = false , |
|
|
bool |
trail = true , |
|
|
bool |
rise = false , |
|
|
int |
blend = 3 , |
|
|
int |
nframes = 1 |
|
) |
| |
Particles::~Particles |
( |
| ) |
|
|
virtual |
Member Function Documentation
bool Particles::CheckVisibility |
( |
Projector & |
projector | ) |
|
|
virtual |
void Particles::ExecFrame |
( |
double |
seconds | ) |
|
|
virtual |
virtual bool Particles::IsEmitting |
( |
| ) |
const |
|
inlinevirtual |
void Particles::Render |
( |
Video * |
video, |
|
|
DWORD |
flags |
|
) |
| |
|
virtual |
virtual void Particles::StopEmitting |
( |
| ) |
|
|
inlinevirtual |
virtual void Particles::TranslateBy |
( |
const Point & |
ref | ) |
|
|
inlinevirtual |
Member Data Documentation
float Particles::base_speed |
|
protected |
bool Particles::continuous |
|
protected |
float* Particles::intensity |
|
protected |
float Particles::max_scale |
|
protected |
float Particles::max_speed |
|
protected |
float Particles::min_scale |
|
protected |
Point* Particles::part_loc |
|
protected |
Sprite* Particles::point_sprite |
|
protected |
Point* Particles::release |
|
protected |
float Particles::release_rate |
|
protected |
float* Particles::timestamp |
|
protected |
Point* Particles::velocity |
|
protected |
The documentation for this class was generated from the following files: