Class ChangeTextureUpdate

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

public class ChangeTextureUpdate extends GameStateUpdate
A GameStateUpdate that changes the Texture of a specified TileContent
  • Constructor Details

    • ChangeTextureUpdate

      public ChangeTextureUpdate(com.badlogic.gdx.graphics.Texture newTexture, com.badlogic.gdx.math.Vector2 targetPosition, int sourceIndex)
      Default-Constructor
      Parameters:
      newTexture - The new Texture that will be replacing the previous one.
      targetPosition - The Vector2 that is pointing to the desired Location.
      sourceIndex - The vertical (z) position of the TileContent that is being requested.s
  • 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.