org.jscience.computing.game
Class GameBoardPosition

java.lang.Object
  extended by org.jscience.computing.game.GameBoardPosition
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
BoardPosition, MuehlePosition

public class GameBoardPosition
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

GameBoardPosition implements a board position that can be used for various board game implementations. It is also used in the GameBoardMove.

See Also:
GameBoardMove, Serialized Form

Constructor Summary
GameBoardPosition(int position)
          Creates a new GameBoardPosition object.
 
Method Summary
 int asInteger()
          DOCUMENT ME!
 boolean equals(java.lang.Object obj)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameBoardPosition

public GameBoardPosition(int position)
Creates a new GameBoardPosition object.

Parameters:
position - DOCUMENT ME!
Method Detail

asInteger

public int asInteger()
DOCUMENT ME!

Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!

equals

public boolean equals(java.lang.Object obj)
DOCUMENT ME!

Overrides:
equals in class java.lang.Object
Parameters:
obj - DOCUMENT ME!
Returns:
DOCUMENT ME!