public class MiniBotCommandCenter extends java.lang.Object implements CommandCenter
Each bot must implement this class with their own commands.
Constructor and Description |
---|
MiniBotCommandCenter(TCPConnection connection,
MiniBot myBot) |
Modifier and Type | Method and Description |
---|---|
boolean |
sendKV(java.lang.String type,
java.lang.String payload)
Sends an arbitrary key and value over the associated bot's connection.
|
public MiniBotCommandCenter(TCPConnection connection, MiniBot myBot)
public boolean sendKV(java.lang.String type, java.lang.String payload)
CommandCenter
sendKV
in interface CommandCenter
type
- A key to identify the type of commandpayload
- The value of the command