Package megamek.ai.dataset
Class UnitAction
Flexible container for unit action data using a map-based approach with enum keys.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum defining all available unit action fields. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UnitActionfromMovePath(MovePath movePath) Creates a UnitActionMap from a MovePath.Methods inherited from class megamek.ai.dataset.EntityDataMap
get, get, getAllFields, getFieldEnumClass, getFieldOrder, getVersionedClassName, put
-
Constructor Details
-
UnitAction
public UnitAction()Creates an empty UnitActionMap.
-
-
Method Details
-
fromMovePath
Creates a UnitActionMap from a MovePath.- Parameters:
movePath- The MovePath to extract data from- Returns:
- A populated UnitActionMap
-