____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include <string>
#include <vector>
#include "patch_manager.h"
Go to the source code of this file.
Classes | |
| class | CMapField |
| < Describes a field of the map More... | |
| class | CMapInfo |
| class | CMap |
| < Describes the world map More... | |
Defines | |
| #define | MaxMapWidth 256 |
| max map width supported | |
| #define | MaxMapHeight 256 |
| max map height supported | |
| #define | MapFieldSpeedMask 0x0007 |
| Move faster on this tile. | |
| #define | MapFieldLandAllowed 0x0010 |
| Land units allowed. | |
| #define | MapFieldCoastAllowed 0x0020 |
| Coast (transporter) units allowed. | |
| #define | MapFieldWaterAllowed 0x0040 |
| Water units allowed. | |
| #define | MapFieldNoBuilding 0x0080 |
| No buildings allowed. | |
| #define | MapFieldUnpassable 0x0100 |
| Field is movement blocked. | |
| #define | MapFieldTransparent 0x0200 |
| Field is transparent. | |
| #define | MapFieldLandUnit 0x1000 |
| Land unit on field. | |
| #define | MapFieldAirUnit 0x2000 |
| Air unit on field. | |
| #define | MapFieldSeaUnit 0x4000 |
| Water unit on field. | |
| #define | MapFieldBuilding 0x8000 |
| Building on field. | |
Typedefs | |
| typedef void | MapMarkerFunc (const CPlayer *player, int x, int y) |
| Function to (un)mark the vision table. | |
Functions | |
| int | MapFogFilterFlags (CPlayer *player, int x, int y, int mask) |
| Mark a tile for normal sight. | |
| void | MapSight (const CPlayer *player, int x, int y, int w, int h, int range, MapMarkerFunc *marker) |
| Mark tiles with fog of war to be redrawn. | |
| void | MapUpdateFogOfWar (int x, int y) |
| Update fog of war. | |
| void | UpdateFogOfWarChange (void) |
| Builds Vision and Goal Tables. | |
| void | InitVisionTable (void) |
| Cleans up Vision and Goal Tables. | |
| void | FreeVisionTable (void) |
| bool | UnitVisibleOnRadar (const CPlayer *pradar, const CUnit *punit) |
| < Check if a unit is visible on radar | |
| unsigned char | IsTileRadarVisible (const CPlayer *pradar, const CPlayer *punit, int x, int y) |
| Mark a tile as radar visible, or incrase radar vision. | |
| void | MapMarkTileRadar (const CPlayer *player, int x, int y) |
| Unmark a tile as radar visible, decrease is visible by other radar. | |
| void | MapUnmarkTileRadar (const CPlayer *player, int x, int y) |
| Mark a tile as radar jammed, or incrase radar jamming'ness. | |
| void | MapMarkTileRadarJammer (const CPlayer *player, int x, int y) |
| Unmark a tile as jammed, decrease is jamming'ness. | |
| void | MapUnmarkTileRadarJammer (const CPlayer *player, int x, int y) |
| void | MapCclRegister (void) |
| < register ccl features | |
| int | SaveStratagusMap (const std::string &filename, CMap *map) |
| < Save a stratagus map (smp format) | |
| void | LoadStratagusMapInfo (const std::string &mapname) |
| Release info for a map. | |
| void | FreeMapInfo (CMapInfo *info) |
| Returns true, if the unit-type(mask can enter field with bounds check. | |
| bool | CheckedCanMoveToMask (int x, int y, int mask) |
| Returns true, if the unit-type can enter the field. | |
| bool | UnitTypeCanBeAt (const CUnitType *type, int x, int y) |
| Returns true, if the unit can enter the field. | |
| bool | UnitCanBeAt (const CUnit *unit, int x, int y) |
| void | MapMarkUnitSight (CUnit *unit) |
| Mark on vision table the Sight of the unit. | |
| void | MapUnmarkUnitSight (CUnit *unit) |
| Unmark on vision table the Sight of the unit. | |
| bool | CanMoveToMask (int x, int y, int mask) |
| < Can a unit with 'mask' enter the field | |
| void | MapMarkSight (const CPlayer *player, int x, int y, int w, int h, int range) |
| void | MapUnmarkSight (const CPlayer *player, int x, int y, int w, int h, int range) |
| Handle Marking and Unmarking of radar vision. | |
| void | MapMarkRadar (const CPlayer *player, int x, int y, int w, int h, int range) |
| void | MapUnmarkRadar (const CPlayer *player, int x, int y, int w, int h, int range) |
| Handle Marking and Unmarking of radar vision. | |
| void | MapMarkRadarJammer (const CPlayer *player, int x, int y, int w, int h, int range) |
| void | MapUnmarkRadarJammer (const CPlayer *player, int x, int y, int w, int h, int range) |
Variables | |
| CMap | Map |
| The current map. | |
| char | CurrentMapPath [1024] |
| Path to the current map. | |
| unsigned char * | VisionTable [3] |
| Companion table for fast lookups. | |
| int * | VisionLookup |
| Flag must reveal the map. | |
| int | FlagRevealMap |
| Flag must reveal map when in replay. | |
| int | ReplayRevealMap |
| Reveal Map is replay. | |
| int | TileSizeX |
| Size of a tile in X. | |
| int | TileSizeY |
| Size of a tile in Y. | |
| MapMarkerFunc | MapMarkTileSight |
| Unmark a tile for normal sight. | |
| MapMarkerFunc | MapUnmarkTileSight |
| Mark sight changes. | |
Definition in file map.h.
| #define MapFieldAirUnit 0x2000 |
Air unit on field.
Definition at line 177 of file map.h.
Referenced by AiAssignHarvester(), AiFindBuildingPlace2(), AiFindTarget(), AiMarkWaterTransporter(), CclStratagusMap(), CostMoveTo(), CMap::Save(), UnitFindResource(), and UpdateStats().
| #define MapFieldBuilding 0x8000 |
Building on field.
Definition at line 179 of file map.h.
Referenced by AiCheckSurrounding(), CclStratagusMap(), CMap::Save(), and UpdateStats().
| #define MapFieldCoastAllowed 0x0020 |
Coast (transporter) units allowed.
Definition at line 169 of file map.h.
Referenced by AiCheckSurrounding(), CanBuildHere(), CclStratagusMap(), CMap::CoastOnMap(), CMap::Save(), and UpdateStats().
| #define MapFieldLandAllowed 0x0010 |
Land units allowed.
Definition at line 168 of file map.h.
Referenced by AiCheckSurrounding(), CclStratagusMap(), CMap::Save(), and UpdateStats().
| #define MapFieldLandUnit 0x1000 |
Land unit on field.
Definition at line 176 of file map.h.
Referenced by AiAssignHarvester(), AiFindBuildingPlace2(), AiFindTarget(), AiMarkWaterTransporter(), AiSendExplorers(), CclStratagusMap(), CostMoveTo(), DrawBuildingCursor(), CMap::Save(), UnitFindResource(), and UpdateStats().
| #define MapFieldNoBuilding 0x0080 |
No buildings allowed.
Definition at line 171 of file map.h.
Referenced by CclStratagusMap(), CMap::Save(), and UpdateStats().
| #define MapFieldSeaUnit 0x4000 |
Water unit on field.
Definition at line 178 of file map.h.
Referenced by AiAssignHarvester(), AiFindBuildingPlace2(), AiFindTarget(), AiMarkWaterTransporter(), AiSendExplorers(), CclStratagusMap(), CostMoveTo(), DrawBuildingCursor(), CMap::Save(), UnitFindResource(), and UpdateStats().
| #define MapFieldSpeedMask 0x0007 |
Move faster on this tile.
Definition at line 166 of file map.h.
Referenced by DrawPatchTileIcons(), PatchEditorCallbackButtonDown(), and PatchEditorCallbackMouse().
| #define MapFieldTransparent 0x0200 |
Field is transparent.
Definition at line 174 of file map.h.
Referenced by DrawPatchTileIcons(), CPatchManager::getPatch(), and PatchLoadIcons().
| #define MapFieldUnpassable 0x0100 |
Field is movement blocked.
Definition at line 173 of file map.h.
Referenced by AiCheckSurrounding(), CclStratagusMap(), DrawPatchTileIcons(), PatchLoadIcons(), CMap::Save(), and UpdateStats().
| #define MapFieldWaterAllowed 0x0040 |
Water units allowed.
Definition at line 170 of file map.h.
Referenced by AiCheckSurrounding(), CclStratagusMap(), DrawPatchTileIcons(), PatchLoadIcons(), CMap::Save(), UpdateStats(), and CMap::WaterOnMap().
| #define MaxMapHeight 256 |
| #define MaxMapWidth 256 |
max map width supported
Definition at line 140 of file map.h.
Referenced by AiAttackWithForce(), AiForceAttacks(), InitVisionTable(), and StartEditor().
| typedef void MapMarkerFunc(const CPlayer *player, int x, int y) |
| bool CanMoveToMask | ( | int | x, | |
| int | y, | |||
| int | mask | |||
| ) | [inline] |
< Can a unit with 'mask' enter the field
Definition at line 372 of file map.h.
References CMap::Field(), and CMapField::Flags.
Referenced by AiFindBuildingPlace2(), AiFindTarget(), AiMarkWaterTransporter(), and UnitFindResource().
| bool CheckedCanMoveToMask | ( | int | x, | |
| int | y, | |||
| int | mask | |||
| ) |
Returns true, if the unit-type can enter the field.
Can move to this point, applying mask.
| x | X map tile position. | |
| y | Y map tile position. | |
| mask | Mask for movement to apply. |
Definition at line 152 of file map.cpp.
References CMap::Field(), CMapField::Flags, CMap::Info, CMapInfo::MapHeight, and CMapInfo::MapWidth.
Referenced by FindUnloadPosition(), and UnitTypeCanBeAt().
| void FreeMapInfo | ( | CMapInfo * | info | ) |
Returns true, if the unit-type(mask can enter field with bounds check.
Release info about a map.
| info | CMapInfo pointer. |
Definition at line 203 of file map.cpp.
References CMapInfo::Description, CMapInfo::Filename, CMapInfo::MapHeight, CMapInfo::MapUID, CMapInfo::MapWidth, CMapInfo::PlayerSide, and CMapInfo::PlayerType.
Referenced by CMap::Clean().
| void FreeVisionTable | ( | void | ) |
Clean Up Generated Vision and Goal Tables.
Definition at line 760 of file map_fog.cpp.
References VisionLookup, and VisionTable.
Referenced by CleanGame(), and CleanModules().
| void InitVisionTable | ( | void | ) |
Cleans up Vision and Goal Tables.
Initialize Vision and Goal Tables.
Definition at line 657 of file map_fog.cpp.
References isqrt(), MaxMapWidth, VisionLookup, and VisionTable.
Referenced by CreateGame(), InitAStar(), and LoadGame().
Mark a tile as radar visible, or incrase radar vision.
Find out if a unit is visible under radar (By player, or by shared vision)
| pradar | Player who has radar. | |
| punit | Player who is being check. | |
| x | x tile location to check. | |
| y | y tile location to check. |
Definition at line 77 of file map_radar.cpp.
References CMap::Field(), CPlayer::Index, Map, PlayerMax, Players, CMapField::Radar, CMapField::RadarJammer, and CPlayer::SharedVision.
Referenced by UnitVisibleOnRadar().
| void LoadStratagusMapInfo | ( | const std::string & | mapname | ) |
Release info for a map.
Load the map presentation
| mapname | map filename |
Definition at line 268 of file map.cpp.
References CMapInfo::Filename, CMap::Info, and LuaLoadFile().
Referenced by ClientParseConnected(), and LoadMap().
| void MapCclRegister | ( | void | ) |
< register ccl features
Register CCL features for map.
Definition at line 340 of file script_map.cpp.
References CclCenterMap(), CclDefinePlayerTypes(), CclGetFogOfWar(), CclRevealMap(), CclSetFogOfWar(), CclSetFogOfWarGraphics(), CclSetMinimapTerrain(), CclStratagusMap(), and Lua.
Referenced by InitCcl().
| int MapFogFilterFlags | ( | CPlayer * | player, | |
| int | x, | |||
| int | y, | |||
| int | mask | |||
| ) |
Mark a tile for normal sight.
Find out what the tile flags are a tile is covered by fog
| player | player who is doing operation | |
| x | X map location | |
| y | Y map location | |
| mask | input mask to filter |
Definition at line 124 of file map_fog.cpp.
References CUnitType::FieldFlags, CMap::Info, Map, CMapInfo::MapHeight, CMapInfo::MapWidth, CUnitCache::Select(), CUnit::Type, UnitCache, and UnitMax.
Referenced by CanBuildUnitType(), and DrawBuildingCursor().
| void MapMarkRadar | ( | const CPlayer * | player, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | range | |||
| ) | [inline] |
Definition at line 384 of file map.h.
References MapMarkTileRadar(), and MapSight().
Referenced by MapMarkUnitSight().
| void MapMarkRadarJammer | ( | const CPlayer * | player, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | range | |||
| ) | [inline] |
Definition at line 391 of file map.h.
References MapMarkTileRadarJammer(), and MapSight().
Referenced by MapMarkUnitSight().
| void MapMarkSight | ( | const CPlayer * | player, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | range | |||
| ) | [inline] |
| void MapMarkTileRadar | ( | const CPlayer * | player, | |
| int | x, | |||
| int | y | |||
| ) |
Unmark a tile as radar visible, decrease is visible by other radar.
Mark Radar Vision for a tile
| player | The player you are marking for | |
| x | the X tile to mark. | |
| y | the Y tile to mark. |
Definition at line 119 of file map_radar.cpp.
References Assert, CMap::Field(), CPlayer::Index, CMap::Info, Map, CMapInfo::MapHeight, CMapInfo::MapWidth, and CMapField::Radar.
Referenced by MapMarkRadar().
| void MapMarkTileRadarJammer | ( | const CPlayer * | player, | |
| int | x, | |||
| int | y | |||
| ) |
Unmark a tile as jammed, decrease is jamming'ness.
Mark Radar Jamming Vision for a tile
| player | The player you are marking for | |
| x | the X tile to mark. | |
| y | the Y tile to mark. |
Definition at line 156 of file map_radar.cpp.
References Assert, CMap::Field(), CPlayer::Index, CMap::Info, Map, CMapInfo::MapHeight, CMapInfo::MapWidth, and CMapField::RadarJammer.
Referenced by MapMarkRadarJammer().
| void MapMarkUnitSight | ( | CUnit * | unit | ) |
Mark on vision table the Sight of the unit.
Mark on vision table the Sight of the unit (and units inside for transporter)
| unit | unit to unmark its vision. |
Definition at line 375 of file unit.cpp.
References GetFirstContainer(), CUnit::IsUnusable(), MapMarkRadar(), MapMarkRadarJammer(), MapMarkTileSight, MapMarkUnitSightRec(), CUnit::Player, RADAR_INDEX, RADARJAMMER_INDEX, CUnit::Stats, CUnitType::TileHeight, CUnitType::TileWidth, CUnit::Type, CVariable::Value, CUnitStats::Variables, CUnit::X, and CUnit::Y.
Referenced by CclUnit(), CUnit::ChangeOwner(), CommandSharedVision(), HandleActionBuilt(), HandleActionDie(), LetUnitDie(), CUnit::MoveToXY(), CUnit::Place(), CUnit::Remove(), and StartBuilding().
| void MapSight | ( | const CPlayer * | player, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | range, | |||
| MapMarkerFunc * | marker | |||
| ) |
Mark tiles with fog of war to be redrawn.
Mark the sight of unit. (Explore and make visible.)
| player | player to mark the sight for (not unit owner) | |
| x | x location to mark | |
| y | y location to mark | |
| w | width to mark, in square | |
| h | height to mark, in square | |
| range | Radius to mark. | |
| marker | Function to mark or unmark sight |
Definition at line 219 of file map_fog.cpp.
References CPlayer::Index, CMap::Info, Map, CMapInfo::MapHeight, CMapInfo::MapWidth, and VisionTable.
Referenced by CclUnit(), MapMarkRadar(), MapMarkRadarJammer(), MapMarkSight(), MapMarkUnitSightRec(), MapUnmarkRadar(), MapUnmarkRadarJammer(), and MapUnmarkSight().
| void MapUnmarkRadar | ( | const CPlayer * | player, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | range | |||
| ) | [inline] |
Handle Marking and Unmarking of radar vision.
Definition at line 387 of file map.h.
References MapSight(), and MapUnmarkTileRadar().
Referenced by MapUnmarkUnitSight().
| void MapUnmarkRadarJammer | ( | const CPlayer * | player, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | range | |||
| ) | [inline] |
Definition at line 394 of file map.h.
References MapSight(), and MapUnmarkTileRadarJammer().
Referenced by MapUnmarkUnitSight().
| void MapUnmarkSight | ( | const CPlayer * | player, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | range | |||
| ) | [inline] |
Handle Marking and Unmarking of radar vision.
Definition at line 379 of file map.h.
References MapSight(), and MapUnmarkTileSight.
| void MapUnmarkTileRadar | ( | const CPlayer * | player, | |
| int | x, | |||
| int | y | |||
| ) |
Mark a tile as radar jammed, or incrase radar jamming'ness.
Unmark Radar Vision for a tile
| player | The player you are marking for | |
| x | the X tile to mark. | |
| y | the Y tile to mark. |
Definition at line 135 of file map_radar.cpp.
References Assert, CMap::Field(), CPlayer::Index, CMap::Info, Map, CMapInfo::MapHeight, CMapInfo::MapWidth, and CMapField::Radar.
Referenced by MapUnmarkRadar().
| void MapUnmarkTileRadarJammer | ( | const CPlayer * | player, | |
| int | x, | |||
| int | y | |||
| ) |
Unmark Radar Vision for a tile
| player | The player you are marking for | |
| x | the X tile to mark. | |
| y | the Y tile to mark. |
Definition at line 172 of file map_radar.cpp.
References Assert, CMap::Field(), CPlayer::Index, CMap::Info, Map, CMapInfo::MapHeight, CMapInfo::MapWidth, and CMapField::RadarJammer.
Referenced by MapUnmarkRadarJammer().
| void MapUnmarkUnitSight | ( | CUnit * | unit | ) |
Unmark on vision table the Sight of the unit.
Unmark on vision table the Sight of the unit (and units inside for transporter)
| unit | unit to unmark its vision. |
Definition at line 402 of file unit.cpp.
References GetFirstContainer(), CUnit::IsUnusable(), MapMarkUnitSightRec(), MapUnmarkRadar(), MapUnmarkRadarJammer(), MapUnmarkTileSight, CUnit::Player, RADAR_INDEX, RADARJAMMER_INDEX, CUnit::Stats, CUnitType::TileHeight, CUnitType::TileWidth, CUnit::Type, CVariable::Value, CUnitStats::Variables, CUnit::X, and CUnit::Y.
Referenced by CUnit::ChangeOwner(), CommandSharedVision(), HandleActionDie(), CUnit::MoveToXY(), CUnit::Place(), CUnit::Release(), and CUnit::Remove().
| void MapUpdateFogOfWar | ( | int | x, | |
| int | y | |||
| ) |
Update fog of war.
| int SaveStratagusMap | ( | const std::string & | mapName, | |
| CMap * | map | |||
| ) |
< Save a stratagus map (smp format)
Load map presentation
Save a Stratagus map.
| mapName | map filename | |
| map | map to save |
Definition at line 273 of file game.cpp.
References ExitFatal(), CMap::Info, CMapInfo::MapHeight, CMapInfo::MapWidth, WriteMapPresentation(), and WriteMapSetup().
Referenced by EditorSaveMap().
| bool UnitCanBeAt | ( | const CUnit * | unit, | |
| int | x, | |||
| int | y | |||
| ) |
Can a unit be placed to this point.
| unit | unit to be checked. | |
| x | X map tile position. | |
| y | Y map tile position. |
Definition at line 192 of file map.cpp.
References Assert, CUnit::Type, and UnitTypeCanBeAt().
Referenced by CclCreateUnit(), CclMoveUnit(), DropOutNearest(), DropOutOnSide(), CUnit::MoveToXY(), and NextPathElement().
| bool UnitTypeCanBeAt | ( | const CUnitType * | type, | |
| int | x, | |||
| int | y | |||
| ) |
Returns true, if the unit can enter the field.
Can a unit of unit-type be placed at this point.
| type | unit-type to be checked. | |
| x | X map tile position. | |
| y | Y map tile position. |
Definition at line 170 of file map.cpp.
References Assert, CheckedCanMoveToMask(), CUnitType::MovementMask, CUnitType::TileHeight, and CUnitType::TileWidth.
Referenced by Polymorph::Cast(), and UnitCanBeAt().
< Check if a unit is visible on radar
Check if a tile is visible on radar
Find out if a unit is visible under radar (By player, or by shared vision)
| pradar | Player to who has radar. | |
| punit | Unit to check for. |
Definition at line 53 of file map_radar.cpp.
References IsTileRadarVisible(), CUnit::Player, CUnitType::TileHeight, CUnitType::TileWidth, CUnit::Type, CUnit::X, and CUnit::Y.
Referenced by CUnit::IsVisibleAsGoal(), and CUnit::IsVisibleOnMinimap().
| void UpdateFogOfWarChange | ( | void | ) |
Builds Vision and Goal Tables.
Update fog of war.
Definition at line 314 of file map_fog.cpp.
References NumUnits, UnitCountSeen(), and Units.
Referenced by CclSetFogOfWar().
| char CurrentMapPath[1024] |
Path to the current map.
Vision Table to see where to locate goals and vision
Definition at line 55 of file map.cpp.
Referenced by ApplyReplaySettings(), CclSavedGameInfo(), CreateGame(), CEditor::Init(), SaveGame(), StartEditor(), and StartReplay().
| int FlagRevealMap |
Flag must reveal map when in replay.
Definition at line 53 of file map.cpp.
Referenced by ApplyReplaySettings(), CclRevealMap(), CMap::Clean(), CreateGame(), GameMainLoop(), and CEditor::Init().
The current map.
Definition at line 52 of file map.cpp.
Referenced by PatchSaveButtonListener::action(), AiCheckSurrounding(), AiFindBuildingPlace2(), AiFindTarget(), AiMarkWaterTransporter(), AiMoveUnitInTheWay(), AiSendExplorers(), ApplyReplaySettings(), CanBuildHere(), CanBuildOn(), CanBuildUnitType(), AreaBombardment::Cast(), Demolish::Cast(), CclDefineMapSetup(), CclDefinePlayerTypes(), CclGetFogOfWar(), CclPresentMap(), CclRevealMap(), CclSetFogOfWar(), CclStratagusMap(), CBuildRestrictionAddOn::Check(), CBuildRestrictionDistance::Check(), CMap::CleanFogOfWar(), CleanGame(), CleanModules(), ClientParseConnected(), ClipViewport(), ClosestFreeCoast(), CommandAttack(), CommandAttackGround(), CommandMove(), CommandPatrolUnit(), CommandSharedVision(), CommandSpellCast(), CostMoveTo(), CMinimap::Create(), CreateGame(), CreatePatchIcons(), DoActionMove(), CButtonPanel::DoClicked(), DrawBuildingCursor(), DrawFogOfWarTile(), CViewport::DrawMapBackgroundInViewport(), CViewport::DrawMapFogOfWar(), DrawPlayers(), DrawStartLocations(), EditorCallbackButtonDown(), EditorCallbackKeyDown(), EditorCallbackMouse(), EditorSaveMap(), GameTypeLeftVsRight(), GameTypeTopVsBottom(), HandleActionBoard(), HandleActionFollow(), HandleActionMove(), HandleActionPatrol(), HitUnit(), CEditor::Init(), InitMatrix(), InitModules(), InitPathfinder(), InitUserInterface(), CViewport::IsInsideMapArea(), IsTileRadarVisible(), LoadStratagusMap(), MakeMatrix(), MapFogFilterFlags(), MapMarkTileRadar(), MapMarkTileRadarJammer(), MapMarkTileSight(), MapSight(), MapUnmarkTileRadar(), MapUnmarkTileRadarJammer(), MapUnmarkTileSight(), MarkUnitFieldFlags(), MissileHit(), MissileVisibleInViewport(), MoveToTarget(), NetworkGamePrepareGameSettings(), NetworkProcessClientRequest(), NetworkServerStartGame(), NewPath(), PatchEditorMainLoop(), SaveGame(), CMinimap::Screen2MapX(), CMinimap::Screen2MapY(), ServerParseMap(), ServerParseState(), ServerParseWaiting(), CViewport::Set(), StartEditor(), StartMap(), StartPatchEditor(), StartReplay(), tolua_get_Map(), tolua_set_Map(), UIHandleButtonDown(), UIHandleButtonUp(), UIHandleMouseMove(), UnitActions(), UnitCountSeen(), UnitFindResource(), UnmarkUnitFieldFlags(), CMinimap::Update(), CMinimap::UpdateTerrain(), UpdateUnitVariables(), CViewport::Viewport2MapX(), CViewport::Viewport2MapY(), and WriteMapSetup().
| MapMarkerFunc MapMarkTileSight |
Unmark a tile for normal sight.
Referenced by CclUnit(), MapMarkSight(), MapMarkTileSight(), and MapMarkUnitSight().
| MapMarkerFunc MapUnmarkTileSight |
| int ReplayRevealMap |
Reveal Map is replay.
Definition at line 54 of file map.cpp.
Referenced by CMap::Clean(), DoActionMove(), CUnit::Draw(), DrawFogOfWarTile(), CViewport::DrawMapFogOfWar(), DrawUnitOn(), GameMainLoop(), HitUnit(), CEditor::Init(), CUnit::IsVisibleInViewport(), CUnit::IsVisibleOnMinimap(), MissileVisibleInViewport(), StartReplay(), UIHandleButtonDown(), UIHandleButtonUp(), UIHandleMouseMove(), UnitOnScreen(), UnitShowAnimationScaled(), and CMinimap::Update().
| int TileSizeX |
Size of a tile in X.
Size of a tile in X
Definition at line 60 of file map.cpp.
Referenced by MissilePointToPointBounce::Action(), AddSelectedAirUnitsInRectangle(), AddSelectedGroundUnitsInRectangle(), AddSelectedUnitsInRectangle(), CalculateStereo(), AreaBombardment::Cast(), CclCenterMap(), CclSetFogOfWarGraphics(), CViewport::Center(), CenterOnMessage(), ClipViewport(), CreateGame(), DoActionMove(), DoRightButton(), DoScrollArea(), CUnit::Draw(), DrawBuildingCursor(), DrawConstructionShadow(), DrawCursor(), DrawDecoration(), DrawGrids(), DrawInformations(), DrawMapArea(), CViewport::DrawMapBackgroundInViewport(), DrawMapCursor(), CViewport::DrawMapFogOfWar(), Missile::DrawMissile(), DrawPatchTileIcons(), DrawShadow(), DrawUnitSelection(), DrawUnitType(), EditorCallbackButtonDown(), EditorCallbackMouse(), EvaluateMissileLocation(), FinishViewportModeConfiguration(), FireMissile(), GetColor(), GetMissileMapArea(), GetOrderPosition(), HitUnit(), InitSoundClient(), InitUserInterface(), CViewport::IsInsideMapArea(), CUnit::IsVisibleInViewport(), LetUnitDie(), CViewport::Map2ViewportX(), CViewport::MapPixel2Viewport(), MissileHit(), PatchEditorCallbackMouse(), PlayMissileSound(), SelectAirUnitsInRectangle(), SelectGroundUnitsInRectangle(), SelectSpritesInsideRectangle(), SelectUnitsInRectangle(), SendAttack(), SendAttackGround(), SendMove(), SendPatrol(), SendRepair(), SendResource(), SendSpellCast(), SendUnload(), CViewport::Set(), ShowOrder(), ShowSingleOrder(), UiCenterOnGroup(), UiCenterOnSelected(), UiFindIdleWorker(), UIHandleButtonDown(), UIHandleButtonUp(), UIHandleMouseMove(), UiRecallMapPosition(), UISelectStateButtonDown(), UnitOnScreen(), VideoDrawOnlyFog(), ViewPointDistanceToMissile(), and CViewport::Viewport2MapX().
| int TileSizeY |
Size of a tile in Y.
Size of a tile in Y
Definition at line 65 of file map.cpp.
Referenced by MissilePointToPointBounce::Action(), AddSelectedAirUnitsInRectangle(), AddSelectedGroundUnitsInRectangle(), AddSelectedUnitsInRectangle(), AreaBombardment::Cast(), CclCenterMap(), CclSetFogOfWarGraphics(), CViewport::Center(), CenterOnMessage(), ClipViewport(), CreateGame(), DoActionMove(), DoRightButton(), DoScrollArea(), CUnit::Draw(), DrawBuildingCursor(), DrawConstructionShadow(), DrawCursor(), DrawDecoration(), DrawGrids(), DrawInformations(), DrawLevelCompare(), DrawMapArea(), CViewport::DrawMapBackgroundInViewport(), DrawMapCursor(), CViewport::DrawMapFogOfWar(), Missile::DrawMissile(), DrawPatchTileIcons(), DrawShadow(), DrawUnitSelection(), DrawUnitType(), EditorCallbackButtonDown(), EditorCallbackMouse(), EvaluateMissileLocation(), FinishViewportModeConfiguration(), FireMissile(), GetColor(), GetMissileMapArea(), GetOrderPosition(), HitUnit(), InitSoundClient(), InitUserInterface(), CViewport::IsInsideMapArea(), CUnit::IsVisibleInViewport(), LetUnitDie(), CViewport::Map2ViewportY(), CViewport::MapPixel2Viewport(), MissileHit(), PatchEditorCallbackMouse(), SelectAirUnitsInRectangle(), SelectGroundUnitsInRectangle(), SelectSpritesInsideRectangle(), SelectUnitsInRectangle(), SendAttack(), SendAttackGround(), SendMove(), SendPatrol(), SendRepair(), SendResource(), SendSpellCast(), SendUnload(), CViewport::Set(), ShowOrder(), ShowSingleOrder(), UiCenterOnGroup(), UiCenterOnSelected(), UiFindIdleWorker(), UIHandleButtonDown(), UIHandleButtonUp(), UIHandleMouseMove(), UiRecallMapPosition(), UISelectStateButtonDown(), UnitOnScreen(), VideoDrawOnlyFog(), ViewPointDistanceToMissile(), and CViewport::Viewport2MapY().
| int* VisionLookup |
Flag must reveal the map.
Definition at line 60 of file map_fog.cpp.
Referenced by AStarMarkGoal(), FreeAStar(), FreeVisionTable(), and InitVisionTable().
| unsigned char* VisionTable[3] |
Companion table for fast lookups.
Definition at line 59 of file map_fog.cpp.
Referenced by AStarMarkGoal(), FreeAStar(), FreeVisionTable(), InitVisionTable(), and MapSight().
1.5.6