Class ConvexBoardArea

java.lang.Object
megamek.client.bot.princess.geometry.ConvexBoardArea

public class ConvexBoardArea extends Object
This is a convex area on the board made up of 6 lines lying along one of the 3 primary directions of a hex map
  • Constructor Details

    • ConvexBoardArea

      public ConvexBoardArea()
  • Method Details

    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addCoordFacingCombos

      public void addCoordFacingCombos(Iterator<CoordFacingCombo> coordFacingComboIterator, Board board)
    • contains

      public boolean contains(Coords coords)
      returns true if a point is inside the area false if it is not
    • expandToInclude

      public void expandToInclude(Coords coords)
      expands the board area to include point coords
    • getVertexNum

      public Coords getVertexNum(int i)
      Returns a vertex, with zero starting at the upper left of the hex
    • getClosestCoordsTo

      public Coords getClosestCoordsTo(Coords coords)
      returns the closest coord in the area to the given coord
    • getEdges

      public HexLine[] getEdges()