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

public class Cat extends Pet
A cat is a domestic animal that can be owned by a player.

It eats chicken from the ground.

They move much faster than sheep

Ideally cats attack rats for you

Author:
kymara (based on sheep by Daniel Herding)
  • Constructor Details

    • Cat

      public Cat()
      Creates a new wild Cat.
    • Cat

      public Cat(Player owner)
      Creates a new Cat that may be owned by a player.
      Parameters:
      owner - owning player, or null
    • Cat

      public Cat(RPObject object, Player owner)
      Creates a Cat based on an existing cat RPObject, and assigns it to a player.
      Parameters:
      object - object containing the data for the Cat
      owner - The player who should own the cat
  • Method Details

    • generateRPClass

      public static void generateRPClass()
    • getFoodNames

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

      protected boolean takesPartInCombat()
      Does this domestic animal take part in combat?
      Overrides:
      takesPartInCombat in class DomesticAnimal
      Returns:
      true, if it can be attacked by creatures, false otherwise