Class PurpleDragon

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

public class PurpleDragon extends Pet
A purple dragon is a domestic animal that can be owned by a player.

It eats ham or pizza from the ground.

They move much faster than sheep

Purple dragons attack animals which attack them

  • Constructor Details

    • PurpleDragon

      public PurpleDragon()
      Creates a new wild purple dragon.
    • PurpleDragon

      public PurpleDragon(Player owner)
      Creates a new purple dragon that may be owned by a player.
      Parameters:
      owner - The player who should own the purple dragon
    • PurpleDragon

      public PurpleDragon(RPObject object, Player owner)
      Creates a Purple Dragon based on an existing pet RPObject, and assigns it to a player.
      Parameters:
      object -
      owner - The player who should own the purple dragon
  • Method Details

    • generateRPClass

      public static void generateRPClass()
    • getFoodNames

      protected List<String> getFoodNames()
      Specified by:
      getFoodNames in class Pet
    • describe

      public String describe()
      Description copied from class: Entity
      Describes the entity (if a players looks at it).
      Overrides:
      describe in class Pet
      Returns:
      description from the players point of view