Class RemoveTileContentUpdate
java.lang.Object
tech.underoaks.coldcase.state.updates.GameStateUpdate
tech.underoaks.coldcase.state.updates.RemoveTileContentUpdate
The RemoveTileContentUpdate class represents a game state update that removes
specific tile content from a map. This class extends GameStateUpdate.
-
Field Summary
Fields inherited from class tech.underoaks.coldcase.state.updates.GameStateUpdate
UPDATE_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionRemoveTileContentUpdate(com.badlogic.gdx.math.Vector2 sourcePosition, int sourceIndex) Default-Constructor -
Method Summary
-
Constructor Details
-
RemoveTileContentUpdate
public RemoveTileContentUpdate(com.badlogic.gdx.math.Vector2 sourcePosition, int sourceIndex) Default-Constructor- Parameters:
sourcePosition- TheVector2storing 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
Description copied from class:GameStateUpdateApplies the GameStateUpdate to the game state.- Specified by:
applyin classGameStateUpdate- Parameters:
map- the map that will receive changes.
-