|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.dss.common.Command
org.newdawn.asd.net.LagCommand
A command indicating the lag status of a user
| Field Summary | |
static short |
CODE
The code identifing this type of command |
| Constructor Summary | |
LagCommand()
Create a new command |
|
LagCommand(java.lang.String username,
boolean lagged)
Create a new command |
|
| Method Summary | |
java.lang.String |
getUsername()
Get the username of the player identified as lagging |
boolean |
isLagged()
Check if this command indicates lagging |
void |
readImpl(java.io.DataInputStream in)
Provided to allow subclasses to add their data |
void |
writeImpl(java.io.DataOutputStream out)
Provided to allow subclasses to add their data |
| Methods inherited from class org.newdawn.dss.common.Command |
getCode, getPriorityHint, getSequenceNumber, getTime, read, setPriorityHint, setSequenceNumber, setTime, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final short CODE
| Constructor Detail |
public LagCommand()
public LagCommand(java.lang.String username,
boolean lagged)
username - The username of the player identified for lagginglagged - True if the user is lagging| Method Detail |
public java.lang.String getUsername()
public boolean isLagged()
public void writeImpl(java.io.DataOutputStream out)
throws java.io.IOException
Command
writeImpl in class Commandout - The output stream to which the data should be written
java.io.IOException - Indicates a failure to send the dataCommand.writeImpl(java.io.DataOutputStream)
public void readImpl(java.io.DataInputStream in)
throws java.io.IOException
Command
readImpl in class Commandin - The input stream from which to read the data
java.io.IOException - Indicates a failure to read the dataCommand.readImpl(java.io.DataInputStream)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||