Class AddTileContentUpdate
java.lang.Object
tech.underoaks.coldcase.state.updates.GameStateUpdate
tech.underoaks.coldcase.state.updates.AddTileContentUpdate
The AddTileContentUpdate class represents a game state update that adds
specific tile content to a map.
-
Field Summary
Fields inherited from class tech.underoaks.coldcase.state.updates.GameStateUpdate
UPDATE_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionAddTileContentUpdate(com.badlogic.gdx.math.Vector2 targetPosition, TileContent targetTileContent) Default-Constructor -
Method Summary
-
Constructor Details
-
AddTileContentUpdate
public AddTileContentUpdate(com.badlogic.gdx.math.Vector2 targetPosition, TileContent targetTileContent) Default-Constructor- Parameters:
targetPosition- TheVector2that is pointing to the desired Location.targetTileContent- TheTileContentthat needs to be added.
-
-
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.
-