Class AddTileContentUpdate

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

public class AddTileContentUpdate extends GameStateUpdate
The AddTileContentUpdate class represents a game state update that adds specific tile content to a map.
  • Constructor Details

    • AddTileContentUpdate

      public AddTileContentUpdate(com.badlogic.gdx.math.Vector2 targetPosition, TileContent targetTileContent)
      Default-Constructor
      Parameters:
      targetPosition - The Vector2 that is pointing to the desired Location.
      targetTileContent - The TileContent that needs to be added.
  • 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.