Class ConvexBoardArea
java.lang.Object
megamek.client.bot.princess.geometry.ConvexBoardArea
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCoordFacingCombos(Iterator<CoordFacingCombo> coordFacingComboIterator, Board board) booleanreturns true if a point is inside the area false if it is notbooleanvoidexpandToInclude(Coords coords) expands the board area to include point coordsgetClosestCoordsTo(Coords coords) returns the closest coord in the area to the given coordHexLine[]getEdges()getVertexNum(int i) Returns a vertex, with zero starting at the upper left of the hexinthashCode()toString()
-
Constructor Details
-
ConvexBoardArea
public ConvexBoardArea()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
addCoordFacingCombos
-
contains
returns true if a point is inside the area false if it is not -
expandToInclude
expands the board area to include point coords -
getVertexNum
Returns a vertex, with zero starting at the upper left of the hex -
getClosestCoordsTo
returns the closest coord in the area to the given coord -
getEdges
-