|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object game.protocol.Reply game.protocol.EndReply
public class EndReply
Reply indicating that the game is over. Indicates the winner.
Invariant: mType == ENDGAME
Nested Class Summary |
---|
Nested classes/interfaces inherited from class game.protocol.Reply |
---|
Reply.ReplyType |
Field Summary |
---|
Fields inherited from class game.protocol.Reply |
---|
log, mServerLog, mType |
Constructor Summary | |
---|---|
EndReply(Side winner)
|
|
EndReply(java.lang.String msg)
|
Method Summary | |
---|---|
Side |
getWinner()
|
java.lang.String |
toString()
|
Methods inherited from class game.protocol.Reply |
---|
factory, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EndReply(Side winner)
winner
- which side won. null indicates draw.public EndReply(java.lang.String msg) throws ParseException
msg
- the message text
ParseException
- message format is incorrect.Method Detail |
---|
public Side getWinner()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |