Interface StatusEffect

All Known Implementing Classes:
NPCStunStatusEffect, PlayerInkedStatusEffect, PlayerStunStatusEffect

public interface StatusEffect
A status effect that can be applied to an entity.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(Entity entity)
    Create the status effect and attach it to the entity.
    void
    Start the effects of this status.
    void
    Stop the effects of this status immediately.
    void
    Run one frame of the status.
  • Method Details

    • create

      void create(Entity entity)
      Create the status effect and attach it to the entity.
      Parameters:
      entity - Entity to attach to
    • start

      void start()
      Start the effects of this status. Called whenever the status goes from inactive to active.
    • update

      void update()
      Run one frame of the status. Similar to the update() in Components.
    • stop

      void stop()
      Stop the effects of this status immediately. This can be called at any time.