_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ 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 "map.h"
#include "fov.h"
#include "iolib.h"
#include "player.h"
#include "tileset.h"
#include "unit.h"
#include "unit_manager.h"
#include "ui.h"
#include "version.h"
#include "video.h"
map.cpp - The map. | |
CMap | Map |
MapRevealModes | FlagRevealMap |
The current map. More... | |
int | ReplayRevealMap |
Flag must reveal the map. More... | |
unsigned int | ForestRegeneration |
Reveal Map is replay. More... | |
int | ForestRegenerationFrequency |
Forest regeneration. More... | |
char | CurrentMapPath [1024] |
Forest regeneration frequency (every how many seconds we apply 1 point of regeneration) More... | |
bool | CheckedCanMoveToMask (const Vec2i &pos, int mask) |
Returns true, if the unit-type(mask can enter field with bounds check. More... | |
bool | UnitTypeCanBeAt (const CUnitType &type, const Vec2i &pos) |
Returns true, if the unit-type can enter the field. More... | |
bool | UnitCanBeAt (const CUnit &unit, const Vec2i &pos) |
Returns true, if the unit can enter the field. More... | |
void | PreprocessMap () |
Preprocess map, for internal use. More... | |
bool | LoadStratagusMapInfo (const std::string &mapname) |
Load map presentation. More... | |
bool CheckedCanMoveToMask | ( | const Vec2i & | pos, |
int | mask | ||
) |
Returns true, if the unit-type(mask can enter field with bounds check.
Can move to this point, applying mask.
pos | map tile position. |
mask | Mask for movement to apply. |
bool LoadStratagusMapInfo | ( | const std::string & | mapname | ) |
Load map presentation.
Load the map presentation
mapname | map filename |
void PreprocessMap | ( | ) |
Preprocess map, for internal use.
Fixes initially the wood and seen tiles.
Returns true, if the unit can enter the field.
Can a unit be placed to this point.
unit | unit to be checked. |
pos | map tile position. |
Returns true, if the unit-type can enter the field.
Can a unit of unit-type be placed at this point.
type | unit-type to be checked. |
pos | map tile position. |
char CurrentMapPath[1024] |
Forest regeneration frequency (every how many seconds we apply 1 point of regeneration)
The current map.
MapRevealModes FlagRevealMap |
The current map.
Flag must reveal the map.
unsigned int ForestRegeneration |
Reveal Map is replay.
Path to the current map.
int ForestRegenerationFrequency |
Forest regeneration.
CMap Map |
int ReplayRevealMap |
Flag must reveal the map.
Flag must reveal map when in replay.