Class NPCStunStatusEffect

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

public class NPCStunStatusEffect extends Object implements StatusEffect
Class for the NPC stun affect
  • Constructor Details

    • NPCStunStatusEffect

      public NPCStunStatusEffect()
  • 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()
      Update status effect.
      Specified by:
      update in interface StatusEffect