Home
last modified time | relevance | path

Searched refs:MapHeights (Results 1 – 25 of 28) sorted by relevance

12

/dports/games/manaplus/manaplus-2.1.3.17/src/resources/map/
H A Dmapheights.cpp26 MapHeights::MapHeights(const int width, in MapHeights() function in MapHeights
36 MapHeights::~MapHeights() in ~MapHeights()
41 void MapHeights::setHeight(const int x, const int y, const uint8_t height) in setHeight()
46 int MapHeights::calcMemoryLocal() const in calcMemoryLocal()
48 return static_cast<int>(sizeof(MapHeights)) + in calcMemoryLocal()
H A Dmapheights.h31 class MapHeights final : public MemoryCounter
36 MapHeights(const int width, const int height);
38 A_DELETE_COPY(MapHeights)
40 ~MapHeights() override final;
H A Dmap.h50 class MapHeights; variable
353 void addHeights(const MapHeights *restrict const heights) restrict2
500 const MapHeights *mHeights;
H A Dmap.cpp1625 void Map::addHeights(const MapHeights *restrict const heights) restrict2 in addHeights()
/dports/games/manaplus/manaplus-2.1.3.17/src/resources/
H A Dmapreader.h32 class MapHeights; variable
90 MapHeights *const heights,
99 MapHeights *const heights,
H A Dmapreader.cpp555 MapHeights *const heights,
562 MapHeights *const heights, in setTile()
668 MapHeights *const heights, in readBase64Layer()
805 MapHeights *const heights, in readCsvLayer()
915 MapHeights *heights = nullptr; in readLayer()
991 heights = new MapHeights(w, h); in readLayer()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/unit/
H A Dbuild.cpp174 pos2.y = std::min<int>(pos.y + type.TileSize.y + this->Distance, Map.Info.MapHeights[z]); in Check()
180 pos2.y = std::min<int>(pos.y + type.TileSize.y + this->Distance + 1, Map.Info.MapHeights[z]); in Check()
297 pos2.y = std::min<int>(pos.y + type.TileSize.y + this->Distance, Map.Info.MapHeights[z]); in Check()
304 pos2.y = std::min<int>(pos.y + type.TileSize.y + this->Distance + 1, Map.Info.MapHeights[z]); in Check()
509 if (pos.y + type.TileSize.y > Map.Info.MapHeights[z]) { in CanBuildHere()
H A Dunit_cache.cpp107 clamp<short int>(&pos.y, 0, this->Info.MapHeights[z] - 1); in Clamp()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/ai/
H A Dai_building.cpp274 terrainTraversal.SetSize(Map.Info.MapWidths[z], Map.Info.MapHeights[z]); in AiFindBuildingPlace2()
469 terrainTraversal.SetSize(Map.Info.MapWidths[z], Map.Info.MapHeights[z]); in AiFindHallPlace()
582 terrainTraversal.SetSize(Map.Info.MapWidths[z], Map.Info.MapHeights[z]); in AiFindLumberMillPlace()
H A Dai_plan.cpp394 …transporterTerrainTraversal.SetSize(Map.Info.MapWidths[this->GoalMapLayer], Map.Info.MapHeights[th… in PlanAttack()
H A Dai_force.cpp586 terrainTraversal.SetSize(Map.Info.MapWidths[z], Map.Info.MapHeights[z]); in NewRallyPoint()
1250 _C_ Map.Info.MapWidths[z] _C_ Map.Info.MapHeights[z]); in AiAttackWithForceAt()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/map/
H A Dmap_template.cpp352 if (y < template_start_pos.y || y >= (template_start_pos.y + Map.Info.MapHeights[z])) { in ApplyTerrainFile()
415 …if (y < template_start_pos.y || y >= (template_start_pos.y + (Map.Info.MapHeights[z] / this->Scale… in ApplyTerrainImage()
494 Map.Info.MapHeights.push_back(map_layer->GetHeight()); in Apply()
544 …[z], map_start_pos.x + (this->Width * this->Scale)), std::min(Map.Info.MapHeights[z], map_start_po… in Apply()
589 …late_start_pos.y || history_pos.y >= (template_start_pos.y + (Map.Info.MapHeights[z] / this->Scale… in Apply()
808 …p.Info.MapWidths[z], map_start_pos.x + this->Width), std::min(Map.Info.MapHeights[z], map_start_po… in ApplySubtemplates()
919 … >= 0 && subtemplate_pos.x < Map.Info.MapWidths[z] && subtemplate_pos.y < Map.Info.MapHeights[z]) { in ApplySubtemplates()
938 …p.Info.MapWidths[z], map_start_pos.x + this->Width), std::min(Map.Info.MapHeights[z], map_start_po… in ApplySites()
1180 …p.Info.MapWidths[z], map_start_pos.x + this->Width), std::min(Map.Info.MapHeights[z], map_start_po… in ApplyConnectors()
1362 …p.Info.MapWidths[z], map_start_pos.x + this->Width), std::min(Map.Info.MapHeights[z], map_start_po… in ApplyUnits()
H A Dmap_fog.cpp629 const int maxy = std::min(range, Map.Info.MapHeights[z] - pos.y - h); in MapSight()
710 const unsigned int w = Map.Info.MapHeights[z] * Map.Info.MapWidths[z]; in UpdateFogOfWarChange()
903 if (sy + w < Map.Info.MapHeights[z] * w) { in GetFogOfWarTile()
1185 VisibleTable[z].resize(Info.MapWidths[z] * Info.MapHeights[z]); in InitFogOfWar()
H A Dminimap.cpp241 const int n = std::max(std::max(Map.Info.MapWidths[z], Map.Info.MapHeights[z]), 32); in Create()
247 YOffset.push_back((H - (Map.Info.MapHeights[z] * MinimapScaleY[z]) / MINIMAP_FAC + 1) / 2); in Create()
269 Map2MinimapY.push_back(new int[Map.Info.MapHeights[z]]); in Create()
270 memset(Map2MinimapY[z], 0, Map.Info.MapHeights[z] * sizeof(int)); in Create()
274 for (int i = 0; i < Map.Info.MapHeights[z]; ++i) { in Create()
H A Dmap.cpp245 for (int i = 0; i != this->Info.MapWidths[z] * this->Info.MapHeights[z]; ++i) { in Reveal()
1077 for (int iy = 0; iy < Map.Info.MapHeights[z]; ++iy) { in PreprocessMap()
1187 ….CurrentMapLayer->GetWidth(), UI.SelectedViewport->MapPos.y * Map.Info.MapHeights[z] / UI.CurrentM… in ChangeCurrentMapLayer()
1304 … < (int) MapWidths.size() && z < (int) MapHeights.size() && x >= 0 && y >= 0 && x < MapWidths[z] &… in IsPointOnMap()
1357 this->MapHeights.clear(); in Clear()
1422 this->Info.MapHeights.push_back(this->Info.MapHeight); in Create()
1507 file.printf(" {%d, %d},\n", this->Info.MapWidths[z], this->Info.MapHeights[z]); in Save()
1560 for (int h = 0; h < this->Info.MapHeights[z]; ++h) { in Save()
2423 Vec2i map_end(this->Info.MapWidths[z], this->Info.MapHeights[z]); in AdjustMap()
2474 …if ((y + 1) < this->Info.MapHeights[z] && std::find(acceptable_adjacent_tile_types.begin(), accept… in AdjustTileMapIrregularities()
[all …]
H A Dscript_map.cpp127 Map.Info.MapHeights.clear(); in CclStratagusMap()
128 Map.Info.MapHeights.push_back(Map.Info.MapHeight); in CclStratagusMap()
155 Map.Info.MapHeights.push_back(map_layer->GetHeight()); in CclStratagusMap()
296 if (subsubsubargs != Map.Info.MapWidths[z] * Map.Info.MapHeights[z]) { in CclStratagusMap()
326 for (int iy = 0; iy < Map.Info.MapHeights[z]; ++iy) { in CclStratagusMap()
1272 if (pos.x < 0 || pos.x >= Map.Info.MapWidths[z] || pos.y < 0 || pos.y >= Map.Info.MapHeights[z]) { in CclGetTileTerrainHasFlag()
H A Dmap_draw.cpp174 …y = std::min(y, (Map.Info.MapHeights.size() && UI.CurrentMapLayer ? UI.CurrentMapLayer->GetHeight(… in Set()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/pathfinder/
H A Dpathfinder.cpp346 if (newPos.y + unit->Type->TileSize.y - 1 >= Map.Info.MapHeights[z]) { in SetGoal()
347 newPos.y = Map.Info.MapHeights[z] - unit->Type->TileSize.y; in SetGoal()
H A Dastar.cpp317 AStarMapHeight.push_back(Map.Info.MapHeights[z]); in InitAStar()
1003 …const int maxy = std::min<int>(Map.Info.MapHeights[z] - 1 - unitExtraTileSize.y, goalBottomRight.y… in Center()
1055 …const int maxy = std::min(Map.Info.MapHeights[z] - 1 - unitExtraTileSize.y, goalBottomRight.y + (m… in BottomHemicycleNoMinRange()
1071 …const int maxy = std::min(Map.Info.MapHeights[z] - 1 - unitExtraTileSize.y, goalBottomRight.y + ma… in BottomHemicycle()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/include/map/
H A Dmap.h167 std::vector<int> MapHeights; /// Map height for each map layer variable
326 maxpos.y = std::min<short>(maxpos.y, Info.MapHeights[z] - 1); in FixSelectionArea()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/game/
H A Dtrigger.cpp196 if (z == 0 && (Map.Info.MapWidths.size() == 0 || Map.Info.MapHeights.size() == 0)) { in CclGetNumUnitsAt()
201 maxPos.y = std::min<int>(maxPos.y, Map.Info.MapHeights[z] - 1); in CclGetNumUnitsAt()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/ui/
H A Dui.cpp606 …vp.BottomRightPos.y = vp.TopLeftPos.y + (Map.Info.MapHeights.size() && UI.CurrentMapLayer ? UI.Cur… in ClipViewport()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/editor/
H A Deditloop.cpp2493 Map.Info.MapHeights.clear(); in Init()
2494 Map.Info.MapHeights.push_back(Map.Info.MapHeight); in Init()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/action/
H A Dcommand.cpp1429 for (int i = 0; i != Map.Info.MapWidths[z] * Map.Info.MapHeights[z]; ++i) { in CommandSharedVision()
H A Daction_resource.cpp156 terrainTraversal.SetSize(Map.Info.MapWidths[z], Map.Info.MapHeights[z]); in FindNearestReachableTerrainType()

12