_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include <minimap.h>
◆ CMinimap()
◆ AddEvent()
Add a minimap event
- Parameters
-
◆ Contains()
bool CMinimap::Contains |
( |
const PixelPos & |
screenPos | ) |
const |
◆ Create()
void CMinimap::Create |
( |
| ) |
|
Create a mini-map from the tiles of the map.
- Todo:
- Scaling and scrolling the minmap is currently not supported.
◆ Destroy()
void CMinimap::Destroy |
( |
| ) |
|
◆ Draw()
void CMinimap::Draw |
( |
| ) |
const |
Draw the minimap on the screen
◆ DrawViewportArea()
void CMinimap::DrawViewportArea |
( |
const CViewport & |
viewport | ) |
const |
Draw viewport area contour.
◆ ScreenToTilePos()
Vec2i CMinimap::ScreenToTilePos |
( |
const PixelPos & |
screenPos | ) |
const |
Convert screen position to tile map coordinate.
- Parameters
-
screenPos | Screen pixel coordinate. |
- Returns
- Tile coordinate.
◆ SetFogOpacityLevels()
void CMinimap::SetFogOpacityLevels |
( |
const uint8_t |
explored, |
|
|
const uint8_t |
revealed, |
|
|
const uint8_t |
unseen |
|
) |
| |
Set fog of war opacity (alpha chanel values) for different levels of visibility
- Parameters
-
explored | alpha channel value for explored tiles |
revealed | alpha channel value for revealed tiles (when the map revealed) |
unseen | alpha channel value for unseen tiles |
◆ TilePosToScreenPos()
PixelPos CMinimap::TilePosToScreenPos |
( |
const Vec2i & |
tilePos | ) |
const |
Convert tile map coordinate to screen position.
- Parameters
-
- Returns
- Screen pixel coordinate.
◆ Update()
void CMinimap::Update |
( |
| ) |
|
Update the minimap with the current game information
Alpha blending the fog of war texture to minimap TODO: switch to hardware rendering
◆ UpdateSeenXY()
void CMinimap::UpdateSeenXY |
( |
const Vec2i & |
| ) |
|
|
inline |
◆ UpdateXY()
Update a single minimap tile after a change
- Parameters
-
pos | The map position to update in the minimap |
◆ ShowSelected
bool CMinimap::ShowSelected |
◆ Transparent
bool CMinimap::Transparent |
◆ UpdateCache
bool CMinimap::UpdateCache |
◆ WithTerrain
bool CMinimap::WithTerrain |
◆ XOffset
◆ YOffset
The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The