Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
WeatherSetting Class Reference

#include <Snow.h>

Inherits Overridable.

Public Member Functions

 WeatherSetting ()
 
const FieldParsegetFieldParse (void) const
 Get the INI parsing table for loading.
 
- Public Member Functions inherited from Overridable
 Overridable ()
 
const OverridablegetNextOverride (void) const
 
const OverridablegetFinalOverride (void) const
 
void setNextOverride (Overridable *nextOverridable)
 
Overridablefriend_getNextOverride (void)
 
Overridablefriend_getFinalOverride (void)
 
const Overridablefriend_getFinalOverride (void) const
 
void markAsOverride (void)
 
OverridabledeleteOverrides (void)
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 

Public Attributes

AsciiString m_snowTexture
 
Real m_snowFrequencyScaleX
 used to adjust snow position.
 
Real m_snowFrequencyScaleY
 used to adjust snow position.
 
Real m_snowAmplitude
 used to adjust amount of of snow movement. (in world units)
 
Real m_snowPointSize
 used to control hardware point-sprite size. (in arbitrary units - see DX SDK Docs).
 
Real m_snowMaxPointSize
 used to control maximum size (in pixels) of point sprite.
 
Real m_snowMinPointSize
 used to control the minimum size (in piexels) of point sprite.
 
Real m_snowQuadSize
 used to control quad size when no hardware point sprites. (world width/height of quad)
 
Real m_snowBoxDimensions
 used to set dimensions of box surrounding camera. (world units)
 
Real m_snowBoxDensity
 used to control how many emitters are present per world unit
 
Real m_snowVelocity
 used to set speed at which snow falls (world units/sec).
 
Bool m_usePointSprites
 used to disable hardware point-sprite support.
 
Bool m_snowEnabled
 enable/disable snow on the map.
 

Static Public Attributes

static const FieldParse m_weatherSettingFieldParseTable []
 the parse table for INI definition
 

Additional Inherited Members

- Protected Member Functions inherited from MemoryPoolObject
virtual ~MemoryPoolObject ()
 
void * operator new (size_t s)
 
void operator delete (void *p)
 
virtual MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

This structure keeps the transparency and vertex settings, which are the same regardless of the time of day. They can be overridden on a per-map basis.

Definition at line 36 of file Snow.h.

Constructor & Destructor Documentation

◆ WeatherSetting()

WeatherSetting::WeatherSetting ( )
inline

Definition at line 56 of file Snow.h.

Member Function Documentation

◆ getFieldParse()

const FieldParse * WeatherSetting::getFieldParse ( void ) const
inline

Get the INI parsing table for loading.

Definition at line 76 of file Snow.h.

Member Data Documentation

◆ m_snowAmplitude

Real WeatherSetting::m_snowAmplitude

used to adjust amount of of snow movement. (in world units)

Definition at line 44 of file Snow.h.

◆ m_snowBoxDensity

Real WeatherSetting::m_snowBoxDensity

used to control how many emitters are present per world unit

Definition at line 50 of file Snow.h.

◆ m_snowBoxDimensions

Real WeatherSetting::m_snowBoxDimensions

used to set dimensions of box surrounding camera. (world units)

Definition at line 49 of file Snow.h.

◆ m_snowEnabled

Bool WeatherSetting::m_snowEnabled

enable/disable snow on the map.

Definition at line 53 of file Snow.h.

◆ m_snowFrequencyScaleX

Real WeatherSetting::m_snowFrequencyScaleX

used to adjust snow position.

Definition at line 42 of file Snow.h.

◆ m_snowFrequencyScaleY

Real WeatherSetting::m_snowFrequencyScaleY

used to adjust snow position.

Definition at line 43 of file Snow.h.

◆ m_snowMaxPointSize

Real WeatherSetting::m_snowMaxPointSize

used to control maximum size (in pixels) of point sprite.

Definition at line 46 of file Snow.h.

◆ m_snowMinPointSize

Real WeatherSetting::m_snowMinPointSize

used to control the minimum size (in piexels) of point sprite.

Definition at line 47 of file Snow.h.

◆ m_snowPointSize

Real WeatherSetting::m_snowPointSize

used to control hardware point-sprite size. (in arbitrary units - see DX SDK Docs).

Definition at line 45 of file Snow.h.

◆ m_snowQuadSize

Real WeatherSetting::m_snowQuadSize

used to control quad size when no hardware point sprites. (world width/height of quad)

Definition at line 48 of file Snow.h.

◆ m_snowTexture

AsciiString WeatherSetting::m_snowTexture

Definition at line 41 of file Snow.h.

◆ m_snowVelocity

Real WeatherSetting::m_snowVelocity

used to set speed at which snow falls (world units/sec).

Definition at line 51 of file Snow.h.

◆ m_usePointSprites

Bool WeatherSetting::m_usePointSprites

used to disable hardware point-sprite support.

Definition at line 52 of file Snow.h.

◆ m_weatherSettingFieldParseTable

const FieldParse WeatherSetting::m_weatherSettingFieldParseTable
static
Initial value:
=
{
{ "SnowTexture", INI::parseAsciiString,NULL, offsetof( WeatherSetting, m_snowTexture ) },
{ "SnowFrequencyScaleX", INI::parseReal,NULL, offsetof( WeatherSetting, m_snowFrequencyScaleX ) },
{ "SnowFrequencyScaleY", INI::parseReal,NULL, offsetof( WeatherSetting, m_snowFrequencyScaleY ) },
{ "SnowAmplitude", INI::parseReal,NULL, offsetof( WeatherSetting, m_snowAmplitude ) },
{ "SnowPointSize", INI::parseReal,NULL, offsetof( WeatherSetting, m_snowPointSize ) },
{ "SnowMaxPointSize", INI::parseReal,NULL, offsetof( WeatherSetting, m_snowMaxPointSize ) },
{ "SnowMinPointSize", INI::parseReal,NULL, offsetof( WeatherSetting, m_snowMinPointSize ) },
{ "SnowQuadSize", INI::parseReal,NULL, offsetof( WeatherSetting, m_snowQuadSize ) },
{ "SnowBoxDimensions", INI::parseReal,NULL, offsetof( WeatherSetting, m_snowBoxDimensions ) },
{ "SnowBoxDensity", INI::parseReal,NULL, offsetof( WeatherSetting, m_snowBoxDensity ) },
{ "SnowVelocity", INI::parseReal,NULL, offsetof( WeatherSetting, m_snowVelocity ) },
{ "SnowPointSprites", INI::parseBool,NULL, offsetof( WeatherSetting, m_usePointSprites ) },
{ "SnowEnabled", INI::parseBool,NULL, offsetof( WeatherSetting, m_snowEnabled ) },
{ 0, 0, 0, 0 },
}
#define NULL
Definition BaseType.h:92
static void parseBool(INI *ini, void *instance, void *store, const void *userData)
Definition INI.cpp:612
static void parseAsciiString(INI *ini, void *instance, void *store, const void *userData)
Definition INI.cpp:653
static void parseReal(INI *ini, void *instance, void *store, const void *userData)
Definition INI.cpp:558
Real m_snowVelocity
used to set speed at which snow falls (world units/sec).
Definition Snow.h:51
Bool m_snowEnabled
enable/disable snow on the map.
Definition Snow.h:53
Real m_snowBoxDensity
used to control how many emitters are present per world unit
Definition Snow.h:50
Real m_snowAmplitude
used to adjust amount of of snow movement. (in world units)
Definition Snow.h:44
Bool m_usePointSprites
used to disable hardware point-sprite support.
Definition Snow.h:52
Real m_snowMinPointSize
used to control the minimum size (in piexels) of point sprite.
Definition Snow.h:47
Real m_snowPointSize
used to control hardware point-sprite size. (in arbitrary units - see DX SDK Docs).
Definition Snow.h:45
Real m_snowFrequencyScaleY
used to adjust snow position.
Definition Snow.h:43
Real m_snowBoxDimensions
used to set dimensions of box surrounding camera. (world units)
Definition Snow.h:49
Real m_snowFrequencyScaleX
used to adjust snow position.
Definition Snow.h:42
Real m_snowMaxPointSize
used to control maximum size (in pixels) of point sprite.
Definition Snow.h:46
WeatherSetting()
Definition Snow.h:56
Real m_snowQuadSize
used to control quad size when no hardware point sprites. (world width/height of quad)
Definition Snow.h:48
AsciiString m_snowTexture
Definition Snow.h:41

the parse table for INI definition

Definition at line 107 of file Snow.h.


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