dk.itu.smds.torusman
Class ClientSender

java.lang.Object
  extended by dk.itu.smds.torusman.ClientSender

public class ClientSender
extends java.lang.Object

The Class ClientSender takes information and sends that information to the sender.


Field Summary
 int latestAdd
          The latest add.
 java.io.DataOutputStream outs
          The outs.
 
Constructor Summary
ClientSender(java.io.DataOutputStream out)
          Instantiates a new client sender.
 
Method Summary
 void sendMove(ManData m, byte x, byte y)
          Send move.
 void sendScore(byte manId, byte teamId, int points)
          Send score.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outs

public java.io.DataOutputStream outs
The outs.


latestAdd

public int latestAdd
The latest add.

Constructor Detail

ClientSender

public ClientSender(java.io.DataOutputStream out)
Instantiates a new client sender.

Parameters:
out - the out
Method Detail

sendScore

public void sendScore(byte manId,
                      byte teamId,
                      int points)
Send score.

Parameters:
manId - the man id
teamId - the team id
points - the points

sendMove

public void sendMove(ManData m,
                     byte x,
                     byte y)
Send move.

Parameters:
m - the m
x - the x
y - the y