Package megamek.ai.dataset
Class GameData
Container for game state data using a map-based approach with enum keys.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum defining general game state fields.static classSimple class to represent minefield data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GameDataCreates a GameData from a Game.Gets the list of minefields in this game data.Gets the list of unit states in this game data.Methods inherited from class megamek.ai.dataset.EntityDataMap
get, get, getAllFields, getFieldEnumClass, getFieldOrder, getVersionedClassName, put
-
Constructor Details
-
GameData
public GameData()Creates an empty GameData.
-
-
Method Details
-
fromGame
Creates a GameData from a Game.- Parameters:
game- The game to extract data from- Returns:
- A populated GameData
-
getUnitStates
Gets the list of unit states in this game data.- Returns:
- List of UnitStateMap objects
-
getMinefields
Gets the list of minefields in this game data.- Returns:
- List of MinefieldData objects
-