Interface StatusHandler<T extends Status>

Type Parameters:
T - type of status
All Known Implementing Classes:
ConfuseStatusHandler, DrunkStatusHandler, EatStatusHandler, HeavyStatusHandler, PoisonStatusHandler, ShockStatusHandler, ZombieStatusHandler

public interface StatusHandler<T extends Status>
handles status changes
Author:
hendrik
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    inflict​(T status, StatusList statusList, Entity attacker)
    inflicts a status
    void
    remove​(T status, StatusList statusList)
    removes a status
  • Method Details

    • inflict

      void inflict(T status, StatusList statusList, Entity attacker)
      inflicts a status
      Parameters:
      status - Status to inflict
      statusList - StatusList
      attacker - the attacker
    • remove

      void remove(T status, StatusList statusList)
      removes a status
      Parameters:
      status - Status to inflict
      statusList - StatusList