$treeview $search $mathjax
Stratagus
2.2.7
$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 "stratagus.h"
#include "cursor.h"
#include "intern_video.h"
#include "editor.h"
#include "interface.h"
#include "map.h"
#include "ui.h"
#include "unit.h"
#include "unittype.h"
#include <vector>
cursor.cpp - The cursors. | |
static std::vector< CCursor * > | AllCursors |
CursorStates | CursorState |
int | CursorAction |
current cursor state (point,...) | |
int | CursorValue |
action for selection | |
std::string | CustomCursor |
value for CursorAction (spell type f.e.) | |
PixelPos | CursorScreenPos |
custom cursor for button | |
PixelPos | CursorStartScreenPos |
cursor position on screen | |
PixelPos | CursorStartMapPos |
rectangle started on screen | |
CUnitType * | CursorBuilding |
position of starting point of selection rectangle, in Map pixels. | |
CCursor * | GameCursor |
building cursor | |
static SDL_Surface * | HiddenSurface |
current shown cursor-type | |
void | LoadCursors (const std::string &race) |
the same in screen map coordinate system | |
CCursor * | CursorByIdent (const std::string &ident) |
Cursor by identifier. | |
static void | DrawVisibleRectangleCursor (PixelPos corner1, PixelPos corner2) |
static void | DrawBuildingCursor () |
void | DrawCursor () |
Draw any cursor. | |
void | HideCursor () |
Hide the cursor. | |
void | CursorAnimate (unsigned ticks) |
Animate the cursor. | |
void | InitVideoCursors () |
Initialize the cursor module. | |
void | CleanCursors () |
Cleanup the cursor module. | |
static int | CclDefineCursor (lua_State *l) |
static int | CclSetGameCursor (lua_State *l) |
void | CursorCclRegister () |
static int CclDefineCursor | ( | lua_State * | l | ) | [static] |
Define a cursor.
l | Lua state. |
static int CclSetGameCursor | ( | lua_State * | l | ) | [static] |
Set the current game cursor.
l | Lua state. |
void CleanCursors | ( | ) |
Cleanup the cursor module.
Cleanup cursor module
void CursorAnimate | ( | unsigned | ticks | ) |
Animate the cursor.
Animate the cursor.
ticks | Current tick |
CCursor* CursorByIdent | ( | const std::string & | ident | ) |
Cursor by identifier.
Find the cursor of this identifier.
ident | Identifier for the cursor (from config files). |
void CursorCclRegister | ( | ) |
static void DrawBuildingCursor | ( | ) | [static] |
Draw cursor for selecting building position.
void DrawCursor | ( | ) |
Draw any cursor.
Draw the cursor.
Draw rectangle cursor when visible
corner1 | Screen start position of rectangle | |
corner2 | Screen end position of rectangle |
void HideCursor | ( | ) |
Hide the cursor.
Hide the cursor
void InitVideoCursors | ( | ) |
Initialize the cursor module.
Setup the cursor part.
void LoadCursors | ( | const std::string & | race | ) |
the same in screen map coordinate system
Load all cursor sprites.
race | Cursor graphics of this race to load. |
std::vector<CCursor *> AllCursors [static] |
int CursorAction |
current cursor state (point,...)
position of starting point of selection rectangle, in Map pixels.
value for action (spell type f.e.)
custom cursor for button
cursor-type
rectangle started on screen
cursor position on screen
int CursorValue |
action for selection
std::string CustomCursor |
value for CursorAction (spell type f.e.)
building cursor
building cursor
custom cursor for button
SDL_Surface* HiddenSurface [static] |
current shown cursor-type