Class PlayerPassebilityUpdate

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

public class PlayerPassebilityUpdate extends GameStateUpdate
A GameStateUpdate that changes the player-passability-parameter of a TileContent
  • Constructor Details

    • PlayerPassebilityUpdate

      public PlayerPassebilityUpdate(boolean passable, com.badlogic.gdx.math.Vector2 targetPosition, int sourceIndex)
      Default-Constructor
      Parameters:
      passable - True if the Content should be Player-Passable; False otherwise
      targetPosition - The Vector2-Position of the Content that will be updated
      sourceIndex - The index (z-Axis) that specifies which TileContent (in a stack) should be affected.
  • 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.