|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--monrovia.protocol.Stat
The Stat class is used for sending stats to the client
Field Summary | |
int |
mIntValue
the int |
boolean |
mIsIntStat
if mIsIntStat is true this Stat contains an int otherwise its a string |
java.lang.String |
mName
the name of this stat |
java.lang.String |
mStrValue
the string |
Constructor Summary | |
Stat(java.lang.String pName,
int pValue)
Constructor for an int stat |
|
Stat(java.lang.String pName,
java.lang.String pValue)
Constructor for a string stat |
Method Summary | |
java.lang.String |
getStatName()
Get stat name. |
java.lang.String |
getStringValue()
Get stat value. |
void |
setStatValue(int pValue)
Set int stat value. |
void |
setStatValue(java.lang.String pValue)
Set string stat value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public boolean mIsIntStat
public java.lang.String mStrValue
public int mIntValue
public java.lang.String mName
Constructor Detail |
public Stat(java.lang.String pName, int pValue)
pName
- the name of the statpValue
- the value of the statpublic Stat(java.lang.String pName, java.lang.String pValue)
pName
- the name of the statpValue
- the value of the statMethod Detail |
public java.lang.String getStatName()
public java.lang.String getStringValue()
public void setStatValue(java.lang.String pValue)
pValue
- stat value as stringpublic void setStatValue(int pValue)
pValue
- stat value as int
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |