Warfog Class Reference
[Engine Module]

#include <warfog.h>

List of all members.

Public Types

enum  WarfogValue { WARFOG_HIDED = 0, WARFOG_UNKNOWN = 255 }

Public Member Functions

 Warfog (const MapSize &warfog_size)
virtual ~Warfog ()
void Render (byte_t **warfog_field, const MapArea &visible_area)

Private Member Functions

void UpdateTexture (byte_t **warfog_field, const MapArea &visible_area)
void UpdateCoords (const MapArea &visible_area)

Private Attributes

MapSize size
Ref< Texturetexture
vector2 coords [4]
vector2 mapping [4]
byte_t color_unknown [4]
byte_t color_hided [4]
byte_t color_visible [4]
byte_tbuffer


Member Enumeration Documentation

enum Warfog::WarfogValue

Enumerator:
WARFOG_HIDED 
WARFOG_UNKNOWN 


Constructor & Destructor Documentation

Warfog::Warfog ( const MapSize warfog_size  ) 

Creates warfog.

Warfog::~Warfog (  )  [virtual]

Deletes warfog.


Member Function Documentation

void Warfog::Render ( byte_t **  warfog_field,
const MapArea visible_area 
)

void Warfog::UpdateTexture ( byte_t **  warfog_field,
const MapArea visible_area 
) [private]

void Warfog::UpdateCoords ( const MapArea visible_area  )  [private]


Member Data Documentation

MapSize Warfog::size [private]

Ref<Texture> Warfog::texture [private]

vector2 Warfog::coords[4] [private]

vector2 Warfog::mapping[4] [private]

byte_t Warfog::color_unknown[4] [private]

byte_t Warfog::color_hided[4] [private]

byte_t Warfog::color_visible[4] [private]

byte_t* Warfog::buffer [private]


The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:37 2007 for Dark Oberon by  doxygen 1.5.3