All Implemented Interfaces:
Cloneable

public class GloveItem extends ItemObject
A ItemObject that can be picked up by the player. It is required to move the MovableBlock
  • Constructor Details

    • GloveItem

      public GloveItem()
      Default-Constructor
  • Method Details

    • render

      public void render(com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y)
      Description copied from class: TileContent
      Renders the tileContent at the specified coordinates using the given SpriteBatch. If the tile has no texture, this method renders nothing.

      If the tileContent has a TileContent, the render method of the content is called.

      Overrides:
      render in class TileContent
      Parameters:
      batch - the SpriteBatch used to render the tileContent
      x - the x-coordinate for rendering the tile
      y - the y-coordinate for rendering the tile
    • 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.
      Overrides:
      action in class ItemObject
      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