Class PlayerInkedStatusEffect

java.lang.Object
com.csse3200.game.minigames.maze.components.PlayerInkedStatusEffect
All Implemented Interfaces:
StatusEffect

public class PlayerInkedStatusEffect extends Object implements StatusEffect
Class for the Octopus Ink affect on player. When active, will show a black ink spill that covers the screen
  • Constructor Details

    • PlayerInkedStatusEffect

      public PlayerInkedStatusEffect()
  • Method Details

    • create

      public void create(Entity entity)
      Create the status effect and attach it to the entity.
      Specified by:
      create in interface StatusEffect
      Parameters:
      entity - Entity to attach to
    • start

      public void start()
      Start the effects of this status. Called whenever the status goes from inactive to active.
      Specified by:
      start in interface StatusEffect
    • stop

      public void stop()
      Stop the effects of this status immediately. This can be called at any time.
      Specified by:
      stop in interface StatusEffect
    • update

      public void update()
      Updates the ink, setting its position to track the player and fading out the ink gradually.
      Specified by:
      update in interface StatusEffect