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

#include <TerrainClouds.h>

Inheritance diagram for TerrainClouds:
Graphic

List of all members.

Public Member Functions

 TerrainClouds (Terrain *terr, int type)
virtual ~TerrainClouds ()
virtual void Render (Video *video, DWORD flags)
virtual void Update ()
virtual int CollidesWith (Graphic &o)
virtual bool Luminous () const
virtual bool Translucent () const
void Illuminate (Color ambient, List< Light > &lights)
- 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)
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 void SetLuminous (bool l)
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 Member Functions

void BuildClouds ()

Protected Attributes

Terrainterrain
Vec3mverts
VertexSetverts
Polypolys
Material mtl_cloud
Material mtl_shade
int type
int nbanks
int nverts
int npolys
- 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 30 of file TerrainClouds.h.


Constructor & Destructor Documentation

TerrainClouds::TerrainClouds ( Terrain terr,
int  type 
)

Definition at line 29 of file TerrainClouds.cpp.

TerrainClouds::~TerrainClouds ( )
virtual

Definition at line 46 of file TerrainClouds.cpp.


Member Function Documentation

void TerrainClouds::BuildClouds ( )
protected

Definition at line 60 of file TerrainClouds.cpp.

virtual int TerrainClouds::CollidesWith ( Graphic o)
inlinevirtual

Reimplemented from Graphic.

Definition at line 40 of file TerrainClouds.h.

void TerrainClouds::Illuminate ( Color  ambient,
List< Light > &  lights 
)

Definition at line 226 of file TerrainClouds.cpp.

virtual bool TerrainClouds::Luminous ( ) const
inlinevirtual

Reimplemented from Graphic.

Definition at line 41 of file TerrainClouds.h.

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

Reimplemented from Graphic.

Definition at line 257 of file TerrainClouds.cpp.

virtual bool TerrainClouds::Translucent ( ) const
inlinevirtual

Reimplemented from Graphic.

Definition at line 42 of file TerrainClouds.h.

void TerrainClouds::Update ( )
virtual

Reimplemented from Graphic.

Definition at line 214 of file TerrainClouds.cpp.


Member Data Documentation

Material TerrainClouds::mtl_cloud
protected

Definition at line 53 of file TerrainClouds.h.

Material TerrainClouds::mtl_shade
protected

Definition at line 54 of file TerrainClouds.h.

Vec3* TerrainClouds::mverts
protected

Definition at line 50 of file TerrainClouds.h.

int TerrainClouds::nbanks
protected

Definition at line 57 of file TerrainClouds.h.

int TerrainClouds::npolys
protected

Definition at line 59 of file TerrainClouds.h.

int TerrainClouds::nverts
protected

Definition at line 58 of file TerrainClouds.h.

Poly* TerrainClouds::polys
protected

Definition at line 52 of file TerrainClouds.h.

Terrain* TerrainClouds::terrain
protected

Definition at line 49 of file TerrainClouds.h.

int TerrainClouds::type
protected

Definition at line 56 of file TerrainClouds.h.

VertexSet* TerrainClouds::verts
protected

Definition at line 51 of file TerrainClouds.h.


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