#include <minimap.h>
Add a minimap event
- Parameters
-
bool CMinimap::Contains |
( |
const PixelPos & |
screenPos | ) |
const |
void CMinimap::Create |
( |
| ) |
|
Create a mini-map from the tiles of the map.
- Todo:
- Scaling and scrolling the minmap is currently not supported.
void CMinimap::Destroy |
( |
| ) |
|
void CMinimap::Draw |
( |
| ) |
const |
Draw the minimap on the screen
void CMinimap::DrawViewportArea |
( |
const CViewport & |
viewport | ) |
const |
Draw viewport area contour.
void CMinimap::FreeOpenGL |
( |
| ) |
|
void CMinimap::Reload |
( |
| ) |
|
Vec2i CMinimap::ScreenToTilePos |
( |
const PixelPos & |
screenPos | ) |
const |
Convert screen position to tile map coordinate.
- Parameters
-
screenPos | Screen pixel coordinate. |
- Returns
- Tile coordinate.
PixelPos CMinimap::TilePosToScreenPos |
( |
const Vec2i & |
tilePos | ) |
const |
Convert tile map coordinate to screen position.
- Parameters
-
- Returns
- Screen pixel coordinate.
void CMinimap::Update |
( |
| ) |
|
Update the minimap with the current game information
void CMinimap::UpdateSeenXY |
( |
const Vec2i & |
| ) |
|
|
inline |
void CMinimap::UpdateXY |
( |
const Vec2i & |
pos | ) |
|
Update a single minimap tile after a change
- Parameters
-
pos | The map position to update in the minimap |
bool CMinimap::ShowSelected |
bool CMinimap::Transparent |
bool CMinimap::UpdateCache |
bool CMinimap::WithTerrain |
The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The