com.webstersmalley.chessweb.model
Class MoveHistory

java.lang.Object
  extended by com.webstersmalley.chessweb.model.MoveHistory

public final class MoveHistory
extends java.lang.Object

A history of moves.

Author:
Matthew Smalley

Constructor Summary
MoveHistory()
          Constructor for the move history.
 
Method Summary
 void addMove(Move move)
          Adds a move to the history.
 java.util.List getMoves()
          Gets the moves.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveHistory

public MoveHistory()
Constructor for the move history. Creates a blank move list.

Method Detail

addMove

public void addMove(Move move)
Adds a move to the history.

Parameters:
move - the move.

getMoves

public java.util.List getMoves()
Gets the moves.

Returns:
the moves.


Copyright © 2005 Webster Smalley. All Rights Reserved.