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

#include <DriveSprite.h>

Inheritance diagram for DriveSprite:
Sprite Graphic

List of all members.

Public Member Functions

 DriveSprite ()
 DriveSprite (Bitmap *animation, Bitmap *glow)
 DriveSprite (Bitmap *animation, int length=1, int repeat=1, int share=1)
virtual ~DriveSprite ()
virtual void Render (Video *video, DWORD flags)
virtual void SetFront (const Vec3 &f)
virtual void SetBias (DWORD b)
- Public Member Functions inherited from Sprite
 Sprite ()
 Sprite (Bitmap *animation, int length=1, int repeat=1, int share=1)
virtual ~Sprite ()
virtual void Render2D (Video *video)
virtual void Update ()
virtual void Scale (double scale)
virtual void Rescale (double scale)
virtual void Reshape (int w1, int h1)
int Width () const
int Height () const
int Looping () const
int NumFrames () const
double FrameRate () const
void SetFrameRate (double rate)
double Shade () const
void SetShade (double s)
double Angle () const
void SetAngle (double a)
int BlendMode () const
void SetBlendMode (int a)
int Filter () const
void SetFilter (int f)
virtual void SetAnimation (Bitmap *animation, int length=1, int repeat=1, int share=1)
virtual void SetTexCoords (const double *uv_interleaved)
BitmapFrame () const
void SetFrameIndex (int n)
virtual bool IsSprite () const
- 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 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 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

double effective_radius
Vec3 front
Bitmapglow
DWORD bias
- Protected Attributes inherited from Sprite
int w
int h
int loop
int nframes
int own_frames
Bitmapframes
int frame_index
DWORD frame_time
DWORD last_time
double shade
double angle
int blend_mode
int filter
Poly poly
Material mtl
VertexSet vset
- 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

- Static Public Member Functions inherited from Sprite
static const char * TYPENAME ()
- Static Public Member Functions inherited from Graphic
static int Nearer (Graphic *a, Graphic *b)
static int Farther (Graphic *a, Graphic *b)

Detailed Description

Definition at line 24 of file DriveSprite.h.


Constructor & Destructor Documentation

DriveSprite::DriveSprite ( )

Definition at line 25 of file DriveSprite.cpp.

DriveSprite::DriveSprite ( Bitmap animation,
Bitmap glow 
)

Definition at line 29 of file DriveSprite.cpp.

DriveSprite::DriveSprite ( Bitmap animation,
int  length = 1,
int  repeat = 1,
int  share = 1 
)

Definition at line 33 of file DriveSprite.cpp.

DriveSprite::~DriveSprite ( )
virtual

Definition at line 38 of file DriveSprite.cpp.


Member Function Documentation

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

Reimplemented from Sprite.

Definition at line 59 of file DriveSprite.cpp.

void DriveSprite::SetBias ( DWORD  b)
virtual

Definition at line 51 of file DriveSprite.cpp.

void DriveSprite::SetFront ( const Vec3 f)
virtual

Definition at line 44 of file DriveSprite.cpp.


Member Data Documentation

DWORD DriveSprite::bias
protected

Definition at line 41 of file DriveSprite.h.

double DriveSprite::effective_radius
protected

Definition at line 38 of file DriveSprite.h.

Vec3 DriveSprite::front
protected

Definition at line 39 of file DriveSprite.h.

Bitmap* DriveSprite::glow
protected

Definition at line 40 of file DriveSprite.h.


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