Class ClientScriptInterface

java.lang.Object
games.stendhal.client.scripting.ClientScriptInterface

public class ClientScriptInterface extends Object
Interface used by client side scripts to interact with the game.
Author:
hendrik
  • Constructor Details

    • ClientScriptInterface

      public ClientScriptInterface()
  • Method Details

    • invoke

      public void invoke(String input)
      handles a string command in the same way the chat line does.
      Parameters:
      input - String to parse and handle
    • sleepMillis

      public void sleepMillis(long millis)
      waits the specified number of milliseconds.
      Parameters:
      millis - milliseconds to wait
    • sleepSeconds

      public void sleepSeconds(long seconds)
      waits the specified number of seconds.
      Parameters:
      seconds - seconds to wait
    • sleepTurns

      public void sleepTurns(long turns)
      waits the specified number of turns.
      Parameters:
      turns - turns to wait