|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.itu.smds.torusman.ServerSender
public class ServerSender
The Class ServerSender handles the sending of packages to all the connected clients.
| Field Summary | |
|---|---|
int |
latestAdd
The latest add. |
boolean |
newMove
The new move. |
boolean |
newScore
The new score. |
java.io.DataOutputStream[] |
outs
The outs. |
| Constructor Summary | |
|---|---|
ServerSender(int size)
Instantiates a new server sender. |
|
| Method Summary | |
|---|---|
void |
addSender(java.io.DataOutputStream out)
Adds the sender. |
void |
sendMove(ManData m,
byte x,
byte y)
Send move. |
void |
sendScore(byte manId,
byte teamId,
int points)
Send score. |
void |
sendTime(int time,
int conId)
Send time. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.io.DataOutputStream[] outs
public volatile int latestAdd
public boolean newScore
public boolean newMove
| Constructor Detail |
|---|
public ServerSender(int size)
size - the size| Method Detail |
|---|
public void addSender(java.io.DataOutputStream out)
out - the out
public void sendMove(ManData m,
byte x,
byte y)
m - the mx - the xy - the y
public void sendTime(int time,
int conId)
time - the timeconId - the con id
public void sendScore(byte manId,
byte teamId,
int points)
manId - the man idteamId - the team idpoints - the points
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||