Class RemoveTileContentUpdate

java.lang.Object
tech.underoaks.coldcase.state.updates.GameStateUpdate
tech.underoaks.coldcase.state.updates.RemoveTileContentUpdate

public class RemoveTileContentUpdate extends GameStateUpdate
The RemoveTileContentUpdate class represents a game state update that removes specific tile content from a map. This class extends GameStateUpdate.
  • Constructor Details

    • RemoveTileContentUpdate

      public RemoveTileContentUpdate(com.badlogic.gdx.math.Vector2 sourcePosition, int sourceIndex)
      Default-Constructor
      Parameters:
      sourcePosition - The Vector2 storing the positional information for the content being removed.
      sourceIndex - The index (z-Axis) that specifies which TileContent (in a stack) should be removed.
  • Method Details

    • apply

      public void apply(Map map)
      Description copied from class: GameStateUpdate
      Applies the GameStateUpdate to the game state.
      Specified by:
      apply in class GameStateUpdate
      Parameters:
      map - the map that will receive changes.