#include <playermap.h>
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. | |
| Warfog * | warfog [MapEnums::SEG_COUNT] |
| Stores dynamic textures of warfog. | |
| PlayerMap::PlayerMap | ( | const MapSize & | size, | |
| bool | warfog_texture | |||
| ) |
Creates warfog.
| PlayerMap::~PlayerMap | ( | ) | [virtual] |
Deletes warfog of each segment.
| bool PlayerMap::IsInMap | ( | const vector2 & | map_position, | |
| MapEnums::Segment & | segment | |||
| ) | const [inline] |
| 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 | |||
| ) |
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.
1.5.3