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.


Field Summary
static java.lang.String aPrivacy
           
static java.lang.String aRandom
           
static java.lang.String cGameOver
           
static char chatCommand
           
static java.lang.String cLostPlayer
           
static java.lang.String cNewGame
           
static java.lang.String cNewPlayer
           
static java.lang.String cNewSpectator
           
static char command
           
static char comment
           
static java.lang.String cSelect
           
static java.lang.String cSetArmies
           
static java.lang.String cSetCards
           
static java.lang.String cSetDice
           
static java.lang.String cSetOwner
           
static java.lang.String cSetTurn
           
static java.lang.String cShowStatus
           
static java.lang.String gAlreadyRunning
           
static java.lang.String gBugReport
           
static java.lang.String gVanquished
           
static char query
           
static java.lang.String rBadArguments
           
static java.lang.String rBadCommand
           
static java.lang.String rLoggedOn
           
static java.lang.String rRobotHints
           
static java.lang.String sCards
           
static java.lang.String sCheat
           
static java.lang.String sCountryClicked
           
static java.lang.String sFinishTurn
           
static java.lang.String sFortify
           
static java.lang.String sIdentify
           
static java.lang.String sJoinGame
           
static java.lang.String sLeaveGame
           
static java.lang.String sNewGame
           
static java.lang.String sOff
           
static java.lang.String sOn
           
static java.lang.String sPrompt
           
static java.lang.String sRobot
           
static java.lang.String sStartGame
           
static java.lang.String sStopGame
           
static java.lang.String sWatchGame
           
static java.lang.String sWho
           
static java.lang.String wAlreadyRunning
           
static char warning
           
static java.lang.String wGameStarted
           
static java.lang.String wInvalidCommand
           
static java.lang.String wNoCountry
           
static java.lang.String wNoGame
           
static java.lang.String wNotAdjacent
           
static java.lang.String wNotAllowed
           
static java.lang.String wNotOwner
           
static java.lang.String wOutOfTurn
           
static java.lang.String wServerError
           
static java.lang.String wTerminated
           
 
Constructor Summary
Protocol()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Protocol

public Protocol()