ks.common.games
Class SolitaireUndoAdapter

java.lang.Object
  extended byks.common.controller.UndoAdapter
      extended byks.common.games.SolitaireUndoAdapter

public class SolitaireUndoAdapter
extends UndoAdapter

Default undo adapter for use by all solitaire plug-ins.

The Solitaire Undo adapter is programmed to receive RightClick mouse events and invoke the undoMove() method from the Solitaire Plug-in.

Creation date: (10/27/01 4:32:35 PM)


Constructor Summary
SolitaireUndoAdapter(Solitaire theGame)
          SolitaireUndoAdapter constructor comment.
 
Method Summary
 boolean undoRequested()
          Undoes the actual move on the game being played.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolitaireUndoAdapter

public SolitaireUndoAdapter(Solitaire theGame)
SolitaireUndoAdapter constructor comment.

Method Detail

undoRequested

public boolean undoRequested()
Undoes the actual move on the game being played. If a particular move can't be undone, then false is returned.

This request is common to all solitaire games, and we are leaving undoMove() in the Solitaire class. Perhaps in the future we might wish to consolidate it into this controller, but we'll leave it here for now.

Creation date: (10/27/01 4:33:33 PM)

Overrides:
undoRequested in class UndoAdapter
Returns:
boolean