Planeshift
WeatherObject Class Referenceabstract

Holds the weather object, need this because some things have been created but do not have an object persay. More...

#include <weather.h>

Public Member Functions

virtual csBox3 CreateDefaultBBox ()=0
 
virtual bool CreateMesh ()=0
 
virtual void Destroy ()
 Destory this weather object and remove any required meshes. More...
 
virtual WeatherInfo * GetParent ()
 
virtual iSector * GetSector ()
 
virtual WeatherConditions GetType ()
 
virtual WeatherSound GetWeatherSound ()
 
virtual WeatherSound GetWeatherSoundForced ()
 
virtual void MoveTo (WeatherInfo *new_parent, iSector *sector)
 
virtual void MoveTo (csVector3 pos)
 
virtual void SetColor (float, float, float)
 
virtual void SetParent (WeatherInfo *new_parent)
 
virtual void SetupMesh (csBox3 bbox)=0
 
virtual void StartFollow ()
 
virtual void StopFollow ()
 
virtual void Update (csTicks)
 
virtual bool Valid ()
 
 WeatherObject (WeatherInfo *parent)
 
virtual ~WeatherObject ()
 

Protected Member Functions

void RefreshSector ()
 

Protected Attributes

csBox3 bbox
 
csRef< iMaterialWrapper > mat
 
csRef< iMeshWrapper > mesh
 
csRef< iMeshFactoryWrapper > mfw
 
WeatherInfo * parent
 

Detailed Description

Holds the weather object, need this because some things have been created but do not have an object persay.

Definition at line 64 of file weather.h.

Constructor & Destructor Documentation

WeatherObject::WeatherObject ( WeatherInfo *  parent)
virtual WeatherObject::~WeatherObject ( )
virtual

Member Function Documentation

virtual csBox3 WeatherObject::CreateDefaultBBox ( )
pure virtual
virtual bool WeatherObject::CreateMesh ( )
pure virtual
virtual void WeatherObject::Destroy ( )
virtual

Destory this weather object and remove any required meshes.

Reimplemented in FogWeatherObject, SnowWeatherObject, and RainWeatherObject.

virtual WeatherInfo* WeatherObject::GetParent ( )
inlinevirtual

Definition at line 82 of file weather.h.

virtual iSector* WeatherObject::GetSector ( )
virtual

Reimplemented in FogWeatherObject.

virtual WeatherConditions WeatherObject::GetType ( )
inlinevirtual

Reimplemented in FogWeatherObject, SnowWeatherObject, and RainWeatherObject.

Definition at line 92 of file weather.h.

virtual WeatherSound WeatherObject::GetWeatherSound ( )
inlinevirtual

Reimplemented in FogWeatherObject, SnowWeatherObject, and RainWeatherObject.

Definition at line 89 of file weather.h.

virtual WeatherSound WeatherObject::GetWeatherSoundForced ( )
inlinevirtual

Reimplemented in FogWeatherObject, SnowWeatherObject, and RainWeatherObject.

Definition at line 90 of file weather.h.

virtual void WeatherObject::MoveTo ( WeatherInfo *  new_parent,
iSector *  sector 
)
virtual
virtual void WeatherObject::MoveTo ( csVector3  pos)
virtual

Reimplemented in FogWeatherObject.

void WeatherObject::RefreshSector ( )
protected
virtual void WeatherObject::SetColor ( float  ,
float  ,
float   
)
inlinevirtual

Reimplemented in FogWeatherObject.

Definition at line 83 of file weather.h.

virtual void WeatherObject::SetParent ( WeatherInfo *  new_parent)
inlinevirtual

Definition at line 81 of file weather.h.

virtual void WeatherObject::SetupMesh ( csBox3  bbox)
pure virtual
virtual void WeatherObject::StartFollow ( )
virtual

Reimplemented in FogWeatherObject.

virtual void WeatherObject::StopFollow ( )
virtual

Reimplemented in FogWeatherObject.

virtual void WeatherObject::Update ( csTicks  )
inlinevirtual

Reimplemented in FogWeatherObject, SnowWeatherObject, and RainWeatherObject.

Definition at line 84 of file weather.h.

virtual bool WeatherObject::Valid ( )
virtual

Reimplemented in FogWeatherObject.

Member Data Documentation

csBox3 WeatherObject::bbox
protected

Definition at line 103 of file weather.h.

csRef<iMaterialWrapper> WeatherObject::mat
protected

Definition at line 107 of file weather.h.

csRef<iMeshWrapper> WeatherObject::mesh
protected

Definition at line 105 of file weather.h.

csRef<iMeshFactoryWrapper> WeatherObject::mfw
protected

Definition at line 106 of file weather.h.

WeatherInfo* WeatherObject::parent
protected

Definition at line 104 of file weather.h.


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