Package model

Class Assassin

All Implemented Interfaces:
Serializable

public class Assassin extends Soldier
Implementation of Assassin special soldier type.
See Also:
  • Constructor Details

    • Assassin

      public Assassin(Point position)
      Constructs a new Assassin instance.
      Parameters:
      position - the assassin's position
  • Method Details

    • attack

      public void attack()
      Attacks the unit's target if nearby.
      Overrides:
      attack in class Soldier
    • selectTargets

      public void selectTargets(ArrayList<Soldier> targets)
      Sets the soldier's targets.
      Parameters:
      targets - the soldier's targets