Package games.stendhal.client.scripting
Class ClientScriptInterface
java.lang.Object
games.stendhal.client.scripting.ClientScriptInterface
Interface used by client side scripts to interact with the game.
- Author:
- hendrik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handles a string command in the same way the chat line does.void
sleepMillis(long millis)
waits the specified number of milliseconds.void
sleepSeconds(long seconds)
waits the specified number of seconds.void
sleepTurns(long turns)
waits the specified number of turns.
-
Constructor Details
-
ClientScriptInterface
public ClientScriptInterface()
-
-
Method Details
-
invoke
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
-