Class PlayerPassebilityUpdate
java.lang.Object
tech.underoaks.coldcase.state.updates.GameStateUpdate
tech.underoaks.coldcase.state.updates.PlayerPassebilityUpdate
A
GameStateUpdate that changes the player-passability-parameter of a TileContent-
Field Summary
Fields inherited from class tech.underoaks.coldcase.state.updates.GameStateUpdate
UPDATE_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionPlayerPassebilityUpdate(boolean passable, com.badlogic.gdx.math.Vector2 targetPosition, int sourceIndex) Default-Constructor -
Method Summary
-
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 otherwisetargetPosition- TheVector2-Position of the Content that will be updatedsourceIndex- The index (z-Axis) that specifies which TileContent (in a stack) should be affected.
-
-
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.
-