Class GameStateUpdate

java.lang.Object
tech.underoaks.coldcase.state.updates.GameStateUpdate
Direct Known Subclasses:
AddTileContentUpdate, ChangeTextureUpdate, EndLevelUpdate, MoveUpdate, PlayerPassebilityUpdate, RemoveTileContentUpdate, TestUpdate

public abstract class GameStateUpdate extends Object
Abstract class representing an atomic change to the game state.
  • Field Details

    • UPDATE_TYPE

      public final UpdateTypes UPDATE_TYPE
      The type of update to be performed.
  • Constructor Details

    • GameStateUpdate

      protected GameStateUpdate(UpdateTypes updateType)
      Default-Constructor
      Parameters:
      updateType - UpdateTypes
  • Method Details

    • apply

      public abstract void apply(Map map)
      Applies the GameStateUpdate to the game state.
      Parameters:
      map - the map that will receive changes.