Class AttackableCreature

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

public class AttackableCreature extends Creature
A creature that will be attacked by normal Creatures.
Author:
hendrik
  • Constructor Details

    • AttackableCreature

      public AttackableCreature(Creature copy)
      Class Constructor.
      Parameters:
      copy -
  • Method Details

    • getEnemyList

      public List<RPEntity> getEnemyList()
      Description copied from class: Creature
      Returns a list of enemies. One of it will be attacked.
      Overrides:
      getEnemyList in class Creature
      Returns:
      list of enemies
    • setMaster

      public void setMaster(String master)
      Sets the master of this creature.
      Parameters:
      master - master
    • getNewInstance

      public Creature getNewInstance()
      Description copied from class: Creature
      creates a new instance, using this creature as template
      Overrides:
      getNewInstance in class Creature
      Returns:
      a new creature