PlayerMap Class Reference
[Engine Module]

#include <playermap.h>

List of all members.

Public Member Functions

 PlayerMap (const MapSize &size, bool warfog_texture)
virtual ~PlayerMap ()
bool IsInMap (const vector2 &map_position, MapEnums::Segment &segment) const
bool IsAreaVisible (const MapPosition3D &position, const MapSize &size) const
bool UpdateWarfog (const Unit *unit, bool added)
void RenderWarfog (MapEnums::Segment segment, const MapArea &visible_area)
void RenderMask (MapEnums::Segment segment, const MapArea &visible_area)

Protected Attributes

MapSize map_size
MapSize warfog_size
byte_t ** warfog_field [MapEnums::SEG_COUNT]
 2D array with warfog value to each filed in the map + boundaries.
Warfogwarfog [MapEnums::SEG_COUNT]
 Stores dynamic textures of warfog.


Constructor & Destructor Documentation

PlayerMap::PlayerMap ( const MapSize size,
bool  warfog_texture 
)

Creates warfog.

PlayerMap::~PlayerMap (  )  [virtual]

Deletes warfog of each segment.


Member Function Documentation

bool PlayerMap::IsInMap ( const vector2 map_position,
MapEnums::Segment segment 
) const [inline]

Todo:
Test and return other visible segments according to warfog.

bool PlayerMap::IsAreaVisible ( const MapPosition3D position,
const MapSize size 
) const [inline]

Checks if at least one field of area is visible.

bool PlayerMap::UpdateWarfog ( const Unit unit,
bool  added 
)

void PlayerMap::RenderWarfog ( MapEnums::Segment  segment,
const MapArea visible_area 
)

void PlayerMap::RenderMask ( MapEnums::Segment  segment,
const MapArea visible_area 
)

Todo:
Optimise using call list for rendering a quad.


Member Data Documentation

MapSize PlayerMap::map_size [protected]

MapSize PlayerMap::warfog_size [protected]

byte_t** PlayerMap::warfog_field[MapEnums::SEG_COUNT] [protected]

2D array with warfog value to each filed in the map + boundaries.

Warfog* PlayerMap::warfog[MapEnums::SEG_COUNT] [protected]

Stores dynamic textures of warfog.


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