uk.org.redfelineninja.risk.net
Class Protocol
java.lang.Object
|
+--uk.org.redfelineninja.risk.net.Protocol
- public class Protocol
- extends java.lang.Object
This class contains all the commands used in the Risk newtwork proocol.
By gathering it all together in one class there is no possibility of typing
errors within main source code. Since the server error messages are specified
as protocol it allows the client to trap specific error messages and display
them in a frame as appropriate.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
command
public static final char command
- See Also:
- Constant Field Values
comment
public static final char comment
- See Also:
- Constant Field Values
query
public static final char query
- See Also:
- Constant Field Values
warning
public static final char warning
- See Also:
- Constant Field Values
chatCommand
public static final char chatCommand
- See Also:
- Constant Field Values
cGameOver
public static final java.lang.String cGameOver
- See Also:
- Constant Field Values
cLostPlayer
public static final java.lang.String cLostPlayer
- See Also:
- Constant Field Values
cNewGame
public static final java.lang.String cNewGame
- See Also:
- Constant Field Values
cNewPlayer
public static final java.lang.String cNewPlayer
- See Also:
- Constant Field Values
cNewSpectator
public static final java.lang.String cNewSpectator
- See Also:
- Constant Field Values
cSetArmies
public static final java.lang.String cSetArmies
- See Also:
- Constant Field Values
cSetCards
public static final java.lang.String cSetCards
- See Also:
- Constant Field Values
cSetDice
public static final java.lang.String cSetDice
- See Also:
- Constant Field Values
cSetOwner
public static final java.lang.String cSetOwner
- See Also:
- Constant Field Values
cSetTurn
public static final java.lang.String cSetTurn
- See Also:
- Constant Field Values
cSelect
public static final java.lang.String cSelect
- See Also:
- Constant Field Values
cShowStatus
public static final java.lang.String cShowStatus
- See Also:
- Constant Field Values
sPrompt
public static final java.lang.String sPrompt
- See Also:
- Constant Field Values
sIdentify
public static final java.lang.String sIdentify
- See Also:
- Constant Field Values
sNewGame
public static final java.lang.String sNewGame
- See Also:
- Constant Field Values
sJoinGame
public static final java.lang.String sJoinGame
- See Also:
- Constant Field Values
sWatchGame
public static final java.lang.String sWatchGame
- See Also:
- Constant Field Values
sStartGame
public static final java.lang.String sStartGame
- See Also:
- Constant Field Values
sCountryClicked
public static final java.lang.String sCountryClicked
- See Also:
- Constant Field Values
sFortify
public static final java.lang.String sFortify
- See Also:
- Constant Field Values
sFinishTurn
public static final java.lang.String sFinishTurn
- See Also:
- Constant Field Values
sCheat
public static final java.lang.String sCheat
- See Also:
- Constant Field Values
sCards
public static final java.lang.String sCards
- See Also:
- Constant Field Values
sLeaveGame
public static final java.lang.String sLeaveGame
- See Also:
- Constant Field Values
sStopGame
public static final java.lang.String sStopGame
- See Also:
- Constant Field Values
wGameStarted
public static final java.lang.String wGameStarted
- See Also:
- Constant Field Values
wServerError
public static final java.lang.String wServerError
- See Also:
- Constant Field Values
wNoGame
public static final java.lang.String wNoGame
- See Also:
- Constant Field Values
wOutOfTurn
public static final java.lang.String wOutOfTurn
- See Also:
- Constant Field Values
wNoCountry
public static final java.lang.String wNoCountry
- See Also:
- Constant Field Values
wNotAdjacent
public static final java.lang.String wNotAdjacent
- See Also:
- Constant Field Values
wNotOwner
public static final java.lang.String wNotOwner
- See Also:
- Constant Field Values
wNotAllowed
public static final java.lang.String wNotAllowed
- See Also:
- Constant Field Values
wInvalidCommand
public static final java.lang.String wInvalidCommand
- See Also:
- Constant Field Values
wAlreadyRunning
public static final java.lang.String wAlreadyRunning
- See Also:
- Constant Field Values
wTerminated
public static final java.lang.String wTerminated
- See Also:
- Constant Field Values
sWho
public static final java.lang.String sWho
- See Also:
- Constant Field Values
sRobot
public static final java.lang.String sRobot
- See Also:
- Constant Field Values
sOn
public static final java.lang.String sOn
- See Also:
- Constant Field Values
sOff
public static final java.lang.String sOff
- See Also:
- Constant Field Values
rBadCommand
public static final java.lang.String rBadCommand
- See Also:
- Constant Field Values
rBadArguments
public static final java.lang.String rBadArguments
- See Also:
- Constant Field Values
rLoggedOn
public static final java.lang.String rLoggedOn
- See Also:
- Constant Field Values
rRobotHints
public static final java.lang.String rRobotHints
- See Also:
- Constant Field Values
gVanquished
public static final java.lang.String gVanquished
- See Also:
- Constant Field Values
gAlreadyRunning
public static final java.lang.String gAlreadyRunning
- See Also:
- Constant Field Values
gBugReport
public static final java.lang.String gBugReport
- See Also:
- Constant Field Values
aRandom
public static final java.lang.String aRandom
- See Also:
- Constant Field Values
aPrivacy
public static final java.lang.String aPrivacy
- See Also:
- Constant Field Values
Protocol
public Protocol()