Class MapInfo

java.lang.Object
battlecode.common.MapInfo

public class MapInfo extends Object
  • Constructor Details

    • MapInfo

      public MapInfo(MapLocation loc, boolean isPassable, boolean isWall, PaintType paint, PaintType mark, boolean hasRuin, boolean isResourcePatternCenter)
  • Method Details

    • isPassable

      public boolean isPassable()
      Returns if this square is passable.
      Returns:
      whether this square is passable
      Bytecode cost:
      2
    • isWall

      public boolean isWall()
      Returns if this square is a wall.
      Returns:
      whether this square is a wall
      Bytecode cost:
      2
    • hasRuin

      public boolean hasRuin()
      Returns if this square has a ruin.
      Returns:
      whether this square has a ruin
      Bytecode cost:
      2
    • getPaint

      public PaintType getPaint()
      Returns the paint value of this square
      Returns:
      the paint value of this square
      Bytecode cost:
      2
    • getMark

      public PaintType getMark()
      Returns the mark value of this square
      Returns:
      the mark value of this square
      Bytecode cost:
      2
    • getMapLocation

      public MapLocation getMapLocation()
      Returns the location of this square
      Returns:
      the location of this square
      Bytecode cost:
      1
    • isResourcePatternCenter

      public boolean isResourcePatternCenter()
      Returns whether this tile is at the center of an ally resource pattern (regardless of whether the pattern is active yet)
      Returns:
      Whether this is a resource pattern center
    • toString

      public String toString()
      Overrides:
      toString in class Object