All Implemented Interfaces:
UseListener, Killer, Cloneable, Iterable<String>, Serializable

public class Fire extends Entity implements UseListener
Burning fire.
  • Constructor Details

    • Fire

      public Fire(int width, int height)
      creates a new fire.
      Parameters:
      width - width in grid units
      height - height in grid units
  • Method Details

    • generateRPClass

      public static void generateRPClass()
    • onUsed

      public boolean onUsed(RPEntity user)
      Description copied from interface: UseListener
      Invoked when the object is used.
      Specified by:
      onUsed in interface UseListener
      Parameters:
      user - the RPEntity who uses the object
      Returns:
      true if successful