Class ArenaCreature

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

public class ArenaCreature extends Creature
An creature that will only target enemies which are within a specified area.
Author:
hendrik
  • Constructor Details

    • ArenaCreature

      public ArenaCreature(Creature copy, Shape arena)
      ArenaCreature.
      Parameters:
      copy - creature to wrap
      arena - arena
  • 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
    • 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