net.sf.juoserver.protocol
Class MoveRequest

java.lang.Object
  extended by net.sf.juoserver.protocol.AbstractMessage
      extended by net.sf.juoserver.protocol.MoveRequest
All Implemented Interfaces:
Serializable, Message

public class MoveRequest
extends AbstractMessage

See Also:
Serialized Form

Field Summary
protected static int CODE
           
 
Fields inherited from class net.sf.juoserver.protocol.AbstractMessage
NO_CODE, UTF8
 
Constructor Summary
MoveRequest(byte[] contents)
           
MoveRequest(Direction direction, int sequence, int fastwalkPrevKey, boolean running)
           
 
Method Summary
 void accept()
          Signals that this movement request has been accepted by the server.
 boolean equals(Object obj)
           
 Direction getDirection()
           
 int getFastwalkPrevKey()
           
 int getSequence()
           
 int hashCode()
           
 boolean isAcceptedByServer()
           
 boolean isRunning()
           
 String toString()
           
 
Methods inherited from class net.sf.juoserver.protocol.AbstractMessage
encode, getCode, getLength, getName, isCompressed, wrapContents, wrapContents
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CODE

protected static final int CODE
See Also:
Constant Field Values
Constructor Detail

MoveRequest

public MoveRequest(byte[] contents)

MoveRequest

public MoveRequest(Direction direction,
                   int sequence,
                   int fastwalkPrevKey,
                   boolean running)
Method Detail

accept

public void accept()
Signals that this movement request has been accepted by the server.


isAcceptedByServer

public boolean isAcceptedByServer()

getDirection

public Direction getDirection()

isRunning

public boolean isRunning()

getSequence

public int getSequence()

getFastwalkPrevKey

public int getFastwalkPrevKey()

hashCode

public int hashCode()
Specified by:
hashCode in class AbstractMessage

equals

public boolean equals(Object obj)
Specified by:
equals in class AbstractMessage

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012. All Rights Reserved.