|
JSettlers v1.0.6 API Built ${date} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoc.message.SOCMessage
soc.message.SOCDiscard
This message means that a player is discarding
Field Summary |
Constructor Summary | |
SOCDiscard(java.lang.String ga,
int cl,
int or,
int sh,
int wh,
int wo,
int uk)
Create a Discard message. |
|
SOCDiscard(java.lang.String ga,
int pn,
SOCResourceSet rs)
Create a Discard message. |
Method Summary | |
java.lang.String |
getGame()
|
SOCResourceSet |
getResources()
|
static SOCDiscard |
parseDataStr(java.lang.String s)
Parse the command String into a Discard message |
java.lang.String |
toCmd()
DISCARD sep game sep2 clay sep2 ore sep2 sheep sep2 wheat sep2 wood sep2 unknown |
static java.lang.String |
toCmd(java.lang.String ga,
int cl,
int or,
int sh,
int wh,
int wo,
int uk)
DISCARD sep game sep2 clay sep2 ore sep2 sheep sep2 wheat sep2 wood sep2 unknown |
static java.lang.String |
toCmd(java.lang.String ga,
SOCResourceSet rs)
DISCARD sep game sep2 clay sep2 ore sep2 sheep sep2 wheat sep2 wood sep2 unknown |
java.lang.String |
toString()
|
Methods inherited from class soc.message.SOCMessage |
getType, toMsg |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SOCDiscard(java.lang.String ga, int cl, int or, int sh, int wh, int wo, int uk)
ga
- the name of the gamecl
- the ammount of clay being discardedor
- the ammount of ore being discardedsh
- the ammount of sheep being discardedwh
- the ammount of wheat being discardedwo
- the ammount of wood being discardeduk
- the ammount of unknown resources being discardedpublic SOCDiscard(java.lang.String ga, int pn, SOCResourceSet rs)
ga
- the name of the gamers
- the resources being discardedMethod Detail |
public java.lang.String getGame()
public SOCResourceSet getResources()
public java.lang.String toCmd()
toCmd
in class SOCMessage
public static java.lang.String toCmd(java.lang.String ga, SOCResourceSet rs)
ga
- the name of the gamers
- the resources being discarded
public static java.lang.String toCmd(java.lang.String ga, int cl, int or, int sh, int wh, int wo, int uk)
ga
- the name of the gamecl
- the ammount of clay being discardedor
- the ammount of ore being discardedsh
- the ammount of sheep being discardedwh
- the ammount of wheat being discardedwo
- the ammount of wood being discardeduk
- the ammount of unknown resources being discarded
public static SOCDiscard parseDataStr(java.lang.String s)
s
- the String to parse
public java.lang.String toString()
|
JSettlers v1.0.6 API Built ${date} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |