net.sf.magicproject.action.listener
Interface WaitingAction

All Superinterfaces:
Waiting
All Known Implementing Classes:
WaitChoosenActionChoice

public interface WaitingAction
extends Waiting

Since:
0.86
Author:
Fabrice Daugan

Method Summary
 boolean clickOn(JChoosenAction action)
          Called to specify the triggered card chosen for the current action by the handed player
 void finished()
          Called when this action is finished (aborted or completed).
 boolean manualSkip()
          Called by the handed player when he/she wants to skip/abort this action.
 boolean succeedClickOn(JChoosenAction action)
          This function should be called by the 'clickOn' caller in case of the specified action has been handled during the checking validity of this click in the clickOn(JChoosenAction) function.
 

Method Detail

clickOn

boolean clickOn(JChoosenAction action)
Called to specify the triggered card chosen for the current action by the handed player

Parameters:
action - the clicked action
Returns:
true if this click has been managed. Return false if this click has been ignored

succeedClickOn

boolean succeedClickOn(JChoosenAction action)
This function should be called by the 'clickOn' caller in case of the specified action has been handled during the checking validity of this click in the clickOn(JChoosenAction) function.

Parameters:
action - the action that was clicked and successfuly handled by the clickOn(JChoosenAction) function.
Returns:
true if this action is completed

finished

void finished()
Description copied from interface: Waiting
Called when this action is finished (aborted or completed). No stack operation should be done here.

Specified by:
finished in interface Waiting

manualSkip

boolean manualSkip()
Description copied from interface: Waiting
Called by the handed player when he/she wants to skip/abort this action. No stack operation should be done here.

Specified by:
manualSkip in interface Waiting
Returns:
true if this action allow the skip/cancel.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.