public final class BwemExt extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AREA_MIN_MINI_TILES |
static int |
LAKE_MAX_MINI_TILES |
static int |
LAKE_MAX_WIDTH_IN_MINI_TILES |
static int |
MAX_TILES_BETWEEN_COMMAND_CENTER_AND_RESOURCES |
static int |
MAX_TILES_BETWEEN_STARTING_LOCATION_AND_ITS_ASSIGNED_BASE |
static int |
MIN_TILES_BETWEEN_BASES |
public static final int LAKE_MAX_MINI_TILES
public static final int LAKE_MAX_WIDTH_IN_MINI_TILES
public static final int AREA_MIN_MINI_TILES
public static final int MAX_TILES_BETWEEN_COMMAND_CENTER_AND_RESOURCES
public static final int MIN_TILES_BETWEEN_BASES
public static final int MAX_TILES_BETWEEN_STARTING_LOCATION_AND_ITS_ASSIGNED_BASE
public static Position center(TilePosition tilePosition)
public static Position center(WalkPosition walkPosition)
public static Position centerOfBuilding(TilePosition tilePosition, TilePosition buildingSize)
public static Pair<TilePosition,TilePosition> makeBoundingBoxIncludePoint(TilePosition topLeft, TilePosition bottomRight, TilePosition point)
public static TilePosition makePointFitToBoundingBox(TilePosition point, TilePosition topLeft, TilePosition bottomRight)
public static boolean isPointInBoundingBox(TilePosition point, TilePosition topLeft, TilePosition bottomRight)
public static int queenWiseDist(TilePosition a, TilePosition b)
public static int queenWiseDist(WalkPosition a, WalkPosition b)
public static int squaredDist(TilePosition a, TilePosition b)
public static int squaredDist(WalkPosition a, WalkPosition b)
public static double dist(TilePosition a, TilePosition b)
public static int roundedDist(TilePosition a, TilePosition b)
public static int roundedDist(WalkPosition a, WalkPosition b)
public static List<TilePosition> innerBorder(TilePosition topLeft, TilePosition size)
public static List<WalkPosition> innerBorder(WalkPosition topLeft, WalkPosition size)
public static List<TilePosition> outerBorder(TilePosition topLeft, TilePosition size)
public static List<WalkPosition> outerBorder(WalkPosition topLeft, WalkPosition size)
public static List<WalkPosition> outerMiniTileBorder(TilePosition topLeft, TilePosition size)
public static List<WalkPosition> innerMiniTileBorder(TilePosition topLeft, TilePosition size)
public static boolean adjoins8SomeLakeOrNeutral(WalkPosition p, BWMap pMap)
Copyright © 2022. All rights reserved.