net.sf.magicproject.action.listener
Interface WaitingCard

All Superinterfaces:
Waiting
All Known Implementing Classes:
ChoosenTarget, RealTarget, SilentTarget, WaitActivatedChoice

public interface WaitingCard
extends Waiting

Since:
0.86
Author:
Fabrice Daugan

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

Method Detail

clickOn

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

Parameters:
card - 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(MCard card)
This function should be called by the 'clickOn' caller in case of the specified card has been handled during the checking validity of this click in the clickOn(MCard) function.

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