org
Class RealPlayer

java.lang.Object
  extended by org.RealPlayer

public class RealPlayer
extends java.lang.Object


Constructor Summary
RealPlayer(java.lang.String ip, int port, int timeout, java.lang.String nickname, int rcid, int vtid)
           
RealPlayer(java.lang.String ip, int port, int timeout, org.util.xml.element.TagElement tag)
           
 
Method Summary
static void alert(java.lang.Object message)
           
 org.util.xml.element.TagElement createFirstMessage()
           
 org.util.xml.element.TagElement createKickMessage(double angle, int force)
           
 org.util.xml.element.TagElement createVerocitiesMessage(double right, double left)
           
 VirtualPlayer getConnectedVirtualPlayer()
           
 java.lang.String getID()
           
 java.lang.String getNickName()
           
 void init(java.lang.String ip, int port, int timeout, java.lang.String nickname, int rcid, int vtid)
           
 void init(java.lang.String ip, int port, int timeout, org.util.xml.element.TagElement tag)
           
 void initSocket(java.lang.String ip, int port, int timeout, java.lang.String nickname, int rcid, int vtid)
           
 java.lang.String receive()
           
 org.util.xml.element.TagElement receiveTag()
           
 void send(java.lang.String message)
           
 void send(org.util.xml.element.TagElement tag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealPlayer

public RealPlayer(java.lang.String ip,
                  int port,
                  int timeout,
                  org.util.xml.element.TagElement tag)

RealPlayer

public RealPlayer(java.lang.String ip,
                  int port,
                  int timeout,
                  java.lang.String nickname,
                  int rcid,
                  int vtid)
Method Detail

getID

public java.lang.String getID()

getNickName

public java.lang.String getNickName()

getConnectedVirtualPlayer

public VirtualPlayer getConnectedVirtualPlayer()

init

public void init(java.lang.String ip,
                 int port,
                 int timeout,
                 org.util.xml.element.TagElement tag)

init

public void init(java.lang.String ip,
                 int port,
                 int timeout,
                 java.lang.String nickname,
                 int rcid,
                 int vtid)

initSocket

public void initSocket(java.lang.String ip,
                       int port,
                       int timeout,
                       java.lang.String nickname,
                       int rcid,
                       int vtid)
                throws java.lang.Exception
Throws:
java.lang.Exception

createVerocitiesMessage

public org.util.xml.element.TagElement createVerocitiesMessage(double right,
                                                               double left)
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

createKickMessage

public org.util.xml.element.TagElement createKickMessage(double angle,
                                                         int force)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

createFirstMessage

public org.util.xml.element.TagElement createFirstMessage()
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

send

public void send(org.util.xml.element.TagElement tag)
          throws java.lang.Exception
Throws:
java.lang.Exception

send

public void send(java.lang.String message)
          throws java.lang.Exception
Throws:
java.lang.Exception

receiveTag

public org.util.xml.element.TagElement receiveTag()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

receive

public java.lang.String receive()
                         throws java.lang.Exception
Throws:
java.lang.Exception

alert

public static void alert(java.lang.Object message)