Class CreateRaid

java.lang.Object
games.stendhal.server.core.scripting.ScriptImpl
games.stendhal.server.script.CreateRaid
All Implemented Interfaces:
Script
Direct Known Subclasses:
AngelRaid, AnimalRaid, BarbarianRaid, BeholderRaid, BlordroughRaid, ChaosRaid, DragonRaid, DrowRaid, DwarfRaid, ElementalRaid, ElfRaid, FairyRaid, FarmRaid, FrogmanSheepmanRaid, GnomeRaid, ImperialRaid, KoboldRaid, LichRaid, OniRaid, OrcRaid, ZombieRaid

public abstract class CreateRaid extends ScriptImpl
Base class for creating small raids of creatures from other lists Picks randomly from the list and summons raid creatures within a radius of the admin.
  • Constructor Details

    • CreateRaid

      public CreateRaid()
  • Method Details

    • createArmy

      protected abstract Map<String,​Integer> createArmy()
    • execute

      public void execute(Player admin, List<String> args)
      Description copied from interface: Script
      Executes this script.
      Specified by:
      execute in interface Script
      Overrides:
      execute in class ScriptImpl
      Parameters:
      admin - the admin who load it or null on server start.
      args - the arguments the admin specified or null on server start.
    • getInfo

      protected String getInfo()
      contains info to help raid makers decide if this special raid script is applicable for the given users or other usefull info.
      Returns:
      the info to simplify life of raid maker