Class Herald

All Implemented Interfaces:
Script

public class Herald extends ScriptImpl
A herald which will tell news to citizens.
Author:
yoriy
  • Field Details

  • Constructor Details

    • Herald

      public Herald()
  • Method Details

    • load

      public void load(Player admin, List<String> args, ScriptingSandbox sandbox)
      invokes by /script -load Herald.class, placing herald near calling admin.
      Specified by:
      load in interface Script
      Overrides:
      load 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.
      sandbox - all modifications to the game must be done using this object in order for the script to be unloadable
    • workWithCounters

      public void workWithCounters(int id)
      function invokes by HeraldListener.onTurnReached each time when herald have to speech.
      Parameters:
      id - - ID for news in news list