Class SheepBuyerNPC.SheepBuyerSpeakerNPC

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

public class SheepBuyerNPC.SheepBuyerSpeakerNPC extends SpeakerNPC
  • Constructor Details

    • SheepBuyerSpeakerNPC

      public SheepBuyerSpeakerNPC(String name)
  • Method Details

    • moveSheep

      public void moveSheep(Sheep sheep)
      Move a bought sheep to the den if there's space, or remove it from the zone otherwise. Remove old sheep if there'd be more than MAX_SHEEP_IN_PEN after the addition.
      Parameters:
      sheep - the sheep to be moved