de.flothow.jago.netobj
Class NetworkMove

java.lang.Object
  extended by de.flothow.jago.netobj.NetworkMove
All Implemented Interfaces:
java.io.Serializable

public class NetworkMove
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static byte PLAYER_NONE
           
static byte PLAYER_ONE
           
static byte PLAYER_TWO
           
 
Constructor Summary
NetworkMove(byte col, byte row, byte seqNr, byte nextPlayer)
           
NetworkMove(Move m, byte nextPlayer)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Move getMove()
           
 byte getNextPlayer()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PLAYER_NONE

public static final byte PLAYER_NONE
See Also:
Constant Field Values

PLAYER_ONE

public static final byte PLAYER_ONE
See Also:
Constant Field Values

PLAYER_TWO

public static final byte PLAYER_TWO
See Also:
Constant Field Values
Constructor Detail

NetworkMove

public NetworkMove(byte col,
                   byte row,
                   byte seqNr,
                   byte nextPlayer)

NetworkMove

public NetworkMove(Move m,
                   byte nextPlayer)
Method Detail

getNextPlayer

public byte getNextPlayer()

getMove

public Move getMove()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object