Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Trail Class Reference

#include <Trail.h>

Inheritance diagram for Trail:
Graphic

List of all members.

Public Member Functions

 Trail (Bitmap *tex, int n=512)
virtual ~Trail ()
virtual void UpdateVerts (const Point &cam_pos)
virtual void Render (Video *video, DWORD flags)
virtual void AddPoint (const Point &v)
virtual double AverageLength ()
virtual void SetWidth (double w)
virtual void SetDim (int d)
- Public Member Functions inherited from Graphic
 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 void TranslateBy (const Point &ref)
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 RectScreenRect () const
virtual SceneGetScene () const
virtual void SetScene (Scene *s)
virtual int CheckRayIntersection (Point pt, Point vpn, double len, Point &ipt, bool treat_translucent_polys_as_solid=true)
virtual bool CheckVisibility (Projector &projector)

Protected Attributes

int ntrail
int maxtrail
Pointtrail
double length
double width
int dim
int npolys
int nverts
Polypolys
VertexSetverts
Bitmaptexture
Material mtl
double length0
double length1
double last_point_time
- Protected Attributes inherited from Graphic
int id
Point loc
float depth
float radius
int life
bool visible
bool infinite
bool foreground
bool background
bool hidden
bool trans
bool shadow
bool luminous
Rect screen_rect
Scenescene
char name [32]

Additional Inherited Members

- Public Types inherited from Graphic
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 Public Member Functions inherited from Graphic
static const char * TYPENAME ()
static int Nearer (Graphic *a, Graphic *b)
static int Farther (Graphic *a, Graphic *b)
- Static Protected Attributes inherited from Graphic
static int id_key = 1

Detailed Description

Definition at line 26 of file Trail.h.


Constructor & Destructor Documentation

Trail::Trail ( Bitmap tex,
int  n = 512 
)

Definition at line 28 of file Trail.cpp.

Trail::~Trail ( )
virtual

Definition at line 70 of file Trail.cpp.


Member Function Documentation

void Trail::AddPoint ( const Point v)
virtual

Definition at line 141 of file Trail.cpp.

double Trail::AverageLength ( )
virtual

Definition at line 190 of file Trail.cpp.

void Trail::Render ( Video video,
DWORD  flags 
)
virtual

Reimplemented from Graphic.

Definition at line 123 of file Trail.cpp.

virtual void Trail::SetDim ( int  d)
inlinevirtual

Definition at line 38 of file Trail.h.

virtual void Trail::SetWidth ( double  w)
inlinevirtual

Definition at line 37 of file Trail.h.

void Trail::UpdateVerts ( const Point cam_pos)
virtual

Definition at line 78 of file Trail.cpp.


Member Data Documentation

int Trail::dim
protected

Definition at line 47 of file Trail.h.

double Trail::last_point_time
protected

Definition at line 56 of file Trail.h.

double Trail::length
protected

Definition at line 45 of file Trail.h.

double Trail::length0
protected

Definition at line 55 of file Trail.h.

double Trail::length1
protected

Definition at line 55 of file Trail.h.

int Trail::maxtrail
protected

Definition at line 42 of file Trail.h.

Material Trail::mtl
protected

Definition at line 53 of file Trail.h.

int Trail::npolys
protected

Definition at line 49 of file Trail.h.

int Trail::ntrail
protected

Definition at line 41 of file Trail.h.

int Trail::nverts
protected

Definition at line 49 of file Trail.h.

Poly* Trail::polys
protected

Definition at line 50 of file Trail.h.

Bitmap* Trail::texture
protected

Definition at line 52 of file Trail.h.

Point* Trail::trail
protected

Definition at line 43 of file Trail.h.

VertexSet* Trail::verts
protected

Definition at line 51 of file Trail.h.

double Trail::width
protected

Definition at line 46 of file Trail.h.


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