Class ChangeTextureUpdate
java.lang.Object
tech.underoaks.coldcase.state.updates.GameStateUpdate
tech.underoaks.coldcase.state.updates.ChangeTextureUpdate
A
GameStateUpdate that changes the Texture of a specified TileContent-
Field Summary
Fields inherited from class tech.underoaks.coldcase.state.updates.GameStateUpdate
UPDATE_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionChangeTextureUpdate(com.badlogic.gdx.graphics.Texture newTexture, com.badlogic.gdx.math.Vector2 targetPosition, int sourceIndex) Default-Constructor -
Method Summary
-
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- TheVector2that is pointing to the desired Location.sourceIndex- The vertical (z) position of the TileContent that is being requested.s
-
-
Method Details
-
apply
Description copied from class:GameStateUpdateApplies the GameStateUpdate to the game state.- Specified by:
applyin classGameStateUpdate- Parameters:
map- the map that will receive changes.
-