public interface CommandDispatcher extends ToolbarHandler
Modifier and Type | Interface and Description |
---|---|
static class |
CommandDispatcher.Command |
ToolbarHandler.Button
Modifier and Type | Method and Description |
---|---|
void |
dispatch(CommandDispatcher.Command command)
Primary entry point to the command dispatcher
|
void |
dispatch(CommandDispatcher.Command command,
java.lang.Object obj)
Primary entry point to the command dispatcher
what takes an Object as an argument
|
void |
dispatch(CommandDispatcher.Command command,
java.lang.String arg1)
Primary entry point to the command dispatcher
what takes a single string as an argument
|
void |
dispatch(CommandDispatcher.Command command,
java.lang.String arg1,
java.lang.String arg2)
Primary entry point to the command dispatcher
what takes two strings as an argument
|
MainDialog |
getMainDialog()
Fetch the reference to the MainDialog
|
BFProperties |
getProperties()
Get a reference to our properties
|
void |
ropChanged(boolean[] rop)
User has changed the state of the Ready, Online, or Playing button
|
void |
setMainDialog(MainDialog mainDialog)
Set the reference to the instance of MainDialog
|
void |
setProperties(BFProperties properties)
Set the Properties/User preferences
|
void |
writeChatMessageln(java.lang.String name,
int cookie,
java.lang.String text)
Write a message to the chat message pane in the normal color.
|
void |
writeGameErrorln(java.lang.String s)
Write a message in the error color (red) to the game pane appending a crlf to the end.
|
void |
writeGameMessageln(java.lang.String s)
Write a message to the game pane appending a crlf to the end.
|
boolean |
writeNetworkMessageln(java.lang.String s)
Send a message to the fibs server appending a crlf to the end
|
void |
writeRegisterUserMessage(java.lang.String s) |
void |
writeSystemMessage(int type,
java.lang.String s)
Write a message to the System message pane in the specified color.
|
void |
writeSystemMessageln(int type,
java.lang.String s)
Write a message to the System message pane in the specified color.
|
void |
writeSystemMessageln(java.lang.String s)
Write a message to the System message pane in the normal color.
|
buttonPressed
void setProperties(BFProperties properties)
properties
- The loaded propertiesBFProperties getProperties()
void setMainDialog(MainDialog mainDialog)
mainDialog
- The MainDialog that is runningMainDialog getMainDialog()
void dispatch(CommandDispatcher.Command command)
command
- The command to executevoid dispatch(CommandDispatcher.Command command, java.lang.String arg1)
command
- The Command to Executearg1
- A string that the dispatched function wantsvoid dispatch(CommandDispatcher.Command command, java.lang.String arg1, java.lang.String arg2)
command
- The Command to Executearg1
- A string that the dispatched function wantsarg2
- Another string that the dispatched function wantsvoid dispatch(CommandDispatcher.Command command, java.lang.Object obj)
command
- The Command to Executeobj
- An Object that the dispatched function wantsvoid writeSystemMessage(int type, java.lang.String s)
type
- The style of the texts
- The message to writevoid writeSystemMessageln(java.lang.String s)
s
- The message to writevoid writeSystemMessageln(int type, java.lang.String s)
type
- The style of the texts
- The message to writevoid writeRegisterUserMessage(java.lang.String s)
boolean writeNetworkMessageln(java.lang.String s)
s
- The message to sendvoid writeChatMessageln(java.lang.String name, int cookie, java.lang.String text)
name
- The user what sent the messagecookie
- The mode used to send the message (shout, whisper, kibitz, etc)text
- The message to writevoid writeGameMessageln(java.lang.String s)
s
- The message to writevoid writeGameErrorln(java.lang.String s)
s
- The message to writevoid ropChanged(boolean[] rop)
rop
- The current/new state of the Ready[0], Online[1], and Playing[2] buttons.