Class TranscendentTestBlock

java.lang.Object
tech.underoaks.coldcase.state.tileContent.TileContent
tech.underoaks.coldcase.state.tileContent.TranscendentTestBlock
All Implemented Interfaces:
Cloneable

public class TranscendentTestBlock extends TileContent
Test Block for transcendent interactions
"Implementation Note:"
Only for testing purposes
  • Constructor Details

    • TranscendentTestBlock

      public TranscendentTestBlock()
      Default-Constructor
  • Method Details

    • action

      public boolean action(InteractionChain chain, Interaction interaction) throws GameStateUpdateException
      Description copied from class: TileContent
      Performs the action associated with this TileContent when interacted with.
      Specified by:
      action in class TileContent
      Parameters:
      chain - InteractionChain managing the snapshot.
      interaction - The interaction to trigger.
      Returns:
      True if the action has been taken care of; False otherwise
      Throws:
      GameStateUpdateException - If a GameStateUpdate has failed
    • update

      public boolean update(InteractionChain chain, com.badlogic.gdx.math.Vector2 tilePosition, Interaction interaction, TileContent handler) throws GameStateUpdateException
      Description copied from class: TileContent
      Updates the state of this TileContent based on interactions.
      Specified by:
      update in class TileContent
      Parameters:
      chain - InteractionChain managing the snapshot.
      tilePosition - The position of the currently selected tile.
      interaction - The interaction that is currently being handled.
      handler - The TileContent that has been handling the interaction so far.
      Returns:
      True if an update has been performed; False otherwise
      Throws:
      GameStateUpdateException - If a GameStateUpdate has failed