Class UnitState


public class UnitState extends EntityDataMap<UnitState.Field>
Flexible container for unit state data using a map-based approach with enum keys.
  • Constructor Details

    • UnitState

      public UnitState()
      Creates an empty UnitStateMap.
  • Method Details

    • fromEntity

      public static UnitState fromEntity(Entity entity, Game game)
      Creates a UnitStateMap from an Entity.
      Parameters:
      entity - The entity to extract state from
      game - The game reference
      Returns:
      A populated UnitStateMap