|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GUIListener
Defines a listener interface for events generated by user interaction with the GUI
Method Summary | |
---|---|
void |
onAction(int actionID)
Called when the Perform button is clicked on the GUI |
void |
onAddAdmin(java.lang.String playerIP)
Called when the user chooses to add a player to the remote administrators list |
void |
onBanPlayer(int playerNumber)
Called when the user chooses to ban a player from the list of currently connected players |
void |
onCommand(java.lang.String text)
Called when a command is sent from the user |
void |
onConnect(java.lang.String address,
int port,
java.lang.String password)
Called when the Connect button is clicked on the GUI |
void |
onDisconnect()
Called when the Disconnect button is clicked on the GUI |
void |
onExit()
Called when the Exit button is clicked on the GUI, or the main GUI window is closed |
void |
onKickPlayer(int playerNumber)
Called when the user chooses to kick a player from the list of currently connected players |
void |
onRefresh()
Called when the Refresh button is clicked on the GUI, or the refresh timer triggers |
void |
onRemoveAdmin(java.lang.String playerIP)
Called when the user chooses to remove a player from the remote administrators list |
void |
onSetTeam(int playerNumber,
int teamNumber)
Called when the user chooses to assign a connected player to a particular team |
Method Detail |
---|
void onConnect(java.lang.String address, int port, java.lang.String password)
address
- the address of the Soldat server, in dotted IP format
(X.X.X.X)port
- the port number of the Soldat serverpassword
- the remote administration password for the servervoid onDisconnect()
void onExit()
void onAction(int actionID)
actionID
- the ID of the action to be performedvoid onRefresh()
void onCommand(java.lang.String text)
text
- the command string issued by the uservoid onKickPlayer(int playerNumber)
playerNumber
- the unique in-game ID number of the playervoid onBanPlayer(int playerNumber)
playerNumber
- the unique in-game ID number of the playervoid onAddAdmin(java.lang.String playerIP)
playerIP
- the IP address of the playervoid onRemoveAdmin(java.lang.String playerIP)
playerIP
- the IP address of the playervoid onSetTeam(int playerNumber, int teamNumber)
playerNumber
- the unique in-game ID number of the playerteamNumber
- the ID of the team to assign the player to, where
1 = alpha, 2 = beta, 3 = charlie and 4 = delta
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |