$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 <string.h>
#include "stratagus.h"
#include "video.h"
#include "tileset.h"
#include "map.h"
#include "minimap.h"
#include "unittype.h"
#include "player.h"
#include "unit.h"
#include "ui.h"
#include "editor.h"
Classes | |
struct | MinimapEvent |
minimap.cpp - The minimap. | |
#define | MINIMAP_FAC (16 * 3) |
#define | ATTACK_RED_DURATION (1 * CYCLES_PER_SECOND) |
unit attacked are shown red for at least this amount of cycles | |
#define | ATTACK_BLINK_DURATION (7 * CYCLES_PER_SECOND) |
unit attacked are shown blinking for this amount of cycles | |
#define | SCALE_PRECISION 100 |
#define | MAX_MINIMAP_EVENTS 8 |
Minimap scale to fit into window. | |
static GLuint | MinimapTexture |
static unsigned char * | MinimapSurfaceGL |
static unsigned char * | MinimapTerrainSurfaceGL |
static int | MinimapTextureWidth |
static int | MinimapTextureHeight |
static SDL_Surface * | MinimapSurface |
static SDL_Surface * | MinimapTerrainSurface |
generated minimap | |
static int * | Minimap2MapX |
generated minimap terrain | |
static int * | Minimap2MapY |
fast conversion table | |
static int | Map2MinimapX [MaxMapWidth] |
fast conversion table | |
static int | Map2MinimapY [MaxMapHeight] |
fast conversion table | |
static int | MinimapScaleX |
fast conversion table | |
static int | MinimapScaleY |
Minimap scale to fit into window. | |
struct MinimapEvent | MinimapEvents [MAX_MINIMAP_EVENTS] |
int | NumMinimapEvents |
static void | CreateMinimapTexture () |
static Uint8 * | GetTileGraphicPixel (int xofs, int yofs, int mx, int my, int scalex, int scaley, int bpp) |
static void | DrawUnitOn (CUnit &unit, int red_phase) |
static void | DrawEvents () |
#define ATTACK_BLINK_DURATION (7 * CYCLES_PER_SECOND) |
unit attacked are shown blinking for this amount of cycles
#define ATTACK_RED_DURATION (1 * CYCLES_PER_SECOND) |
unit attacked are shown red for at least this amount of cycles
#define MAX_MINIMAP_EVENTS 8 |
Minimap scale to fit into window.
#define MINIMAP_FAC (16 * 3) |
#define SCALE_PRECISION 100 |
static void CreateMinimapTexture | ( | ) | [static] |
Create the minimap texture
static void DrawEvents | ( | ) | [static] |
Draw the minimap events
static void DrawUnitOn | ( | CUnit & | unit, | |
int | red_phase | |||
) | [static] |
Draw a unit on the minimap.
static Uint8* GetTileGraphicPixel | ( | int | xofs, | |
int | yofs, | |||
int | mx, | |||
int | my, | |||
int | scalex, | |||
int | scaley, | |||
int | bpp | |||
) | [inline, static] |
Calculate the tile graphic pixel
int Map2MinimapX[MaxMapWidth] [static] |
fast conversion table
int Map2MinimapY[MaxMapHeight] [static] |
fast conversion table
int* Minimap2MapX [static] |
generated minimap terrain
int* Minimap2MapY [static] |
fast conversion table
struct MinimapEvent MinimapEvents[MAX_MINIMAP_EVENTS] |
int MinimapScaleX [static] |
fast conversion table
int MinimapScaleY [static] |
Minimap scale to fit into window.
SDL_Surface* MinimapSurface [static] |
unsigned char* MinimapSurfaceGL [static] |
SDL_Surface* MinimapTerrainSurface [static] |
generated minimap
unsigned char* MinimapTerrainSurfaceGL [static] |
GLuint MinimapTexture [static] |
int MinimapTextureHeight [static] |
int MinimapTextureWidth [static] |
int NumMinimapEvents |