Package-level declarations

Types

Link copied to clipboard
fun interface Command

Provides a contract for in game commands.

Link copied to clipboard
typealias CustomAction = (game: Game, arguments: List<String>) -> Reaction

Provides a lambda signature for a custom command to obtain a Reaction. The callback is invoked against a game with the specified arguments.

Link copied to clipboard
class CustomCommand(val commandHelp: CommandHelp, var isPlayerVisible: Boolean, callback: CustomAction) : Command, PlayerVisible

Provides a mechanism for allowing custom commands to be added. commandHelp provides help for the command, isPlayerVisible allows the visible state for the player to be toggled. callback provides a CustomAction that is invoked when the Command is invoked.