$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <minimap.h>
minimap.cpp - The minimap. | |
void | UpdateXY (const Vec2i &pos) |
void | Update () |
void | Create () |
void | FreeOpenGL () |
void | Reload () |
void | Destroy () |
void | Draw (int vx, int vy) |
void | DrawCursor (int vx, int vy) |
void | AddEvent (int x, int y, Uint32 color) |
int | Screen2MapX (int x) |
int | Screen2MapY (int y) |
Public Member Functions | |
CMinimap () | |
void | UpdateSeenXY (const Vec2i &) |
Public Attributes | |
int | X |
int | Y |
int | W |
int | H |
int | XOffset |
int | YOffset |
bool | WithTerrain |
bool | ShowSelected |
bool | Transparent |
bool | UpdateCache |
CMinimap::CMinimap | ( | ) | [inline] |
void CMinimap::UpdateXY | ( | const Vec2i & | pos | ) |
Update a single minimap tile after a change
pos | The map position to update in the minimap |
void CMinimap::UpdateSeenXY | ( | const Vec2i & | ) | [inline] |
void CMinimap::Update | ( | ) |
Update the minimap with the current game information
void CMinimap::Create | ( | ) |
Create a mini-map from the tiles of the map.
void CMinimap::FreeOpenGL | ( | ) |
Free OpenGL minimap
void CMinimap::Reload | ( | ) |
Reload OpenGL minimap
void CMinimap::Destroy | ( | ) |
Destroy mini-map.
void CMinimap::Draw | ( | int | vx, | |
int | vy | |||
) |
Draw the minimap on the screen
void CMinimap::DrawCursor | ( | int | vx, | |
int | vy | |||
) |
Draw minimap cursor.
vx | View point X position. | |
vy | View point Y position. |
void CMinimap::AddEvent | ( | int | x, | |
int | y, | |||
Uint32 | color | |||
) |
Add a minimap event
x | Map X tile position | |
y | Map Y tile position |
int CMinimap::Screen2MapX | ( | int | x | ) |
Convert minimap cursor X position to tile map coordinate.
x | Screen X pixel coordinate. |
int CMinimap::Screen2MapY | ( | int | y | ) |
Convert minimap cursor Y position to tile map coordinate.
y | Screen Y pixel coordinate. |
int CMinimap::X |
int CMinimap::Y |
int CMinimap::W |
int CMinimap::H |