net.sf.magicproject.action.listener
Interface WaitingTriggeredCard

All Superinterfaces:
Waiting
All Known Implementing Classes:
WaitTriggeredBufferChoice

public interface WaitingTriggeredCard
extends Waiting

Since:
0.86
Author:
Fabrice Daugan

Method Summary
 boolean clickOn(TriggeredCard triggeredCard)
          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(TriggeredCard card)
          This function should be called by the 'clickOn' caller in case of the specified triggered has been handled during the checking validity of this click in the clickOn(TriggeredCard) function.
 

Method Detail

clickOn

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

Parameters:
triggeredCard - the clicked card by the handed player for the current action
Returns:
true if this click has been managed. Return false if this click has been ignored

succeedClickOn

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

Parameters:
card - the triggered card that was clicked and successfuly handled by the clickOn(TriggeredCard) 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.