Package megamek.ai.dataset
Class BoardData
Flexible container for board data using a map-based approach with enum keys.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enum defining all available board data fields.static class
Nested class to represent a single row of hex data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BoardData
Creates a BoardData from a Board.Gets the board's hex rows.Methods inherited from class megamek.ai.dataset.EntityDataMap
get, get, getAllFields, getFieldEnumClass, getFieldOrder, put
-
Constructor Details
-
BoardData
public BoardData()Creates an empty BoardData.
-
-
Method Details
-
fromBoard
Creates a BoardData from a Board.- Parameters:
board
- The board to extract data from- Returns:
- A populated BoardData
-
getHexRows
Gets the board's hex rows.- Returns:
- List of HexRow objects containing the board's hexes
-