Package megamek.ai.dataset
Class UnitState
Flexible container for unit state data using a map-based approach with enum keys.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum defining all available unit state fields. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UnitStatefromEntity(Entity entity, Game game) Creates a UnitStateMap from an Entity.Methods inherited from class megamek.ai.dataset.EntityDataMap
get, get, getAllFields, getFieldEnumClass, getFieldOrder, getVersionedClassName, put
-
Constructor Details
-
UnitState
public UnitState()Creates an empty UnitStateMap.
-
-
Method Details
-
fromEntity
Creates a UnitStateMap from an Entity.- Parameters:
entity- The entity to extract state fromgame- The game reference- Returns:
- A populated UnitStateMap
-