net.sf.magicproject.action.listener
Interface WaitingMana

All Superinterfaces:
Waiting
All Known Implementing Classes:
PayMana

public interface WaitingMana
extends Waiting

Since:
0.86
Author:
Fabrice Daugan

Method Summary
 boolean clickOn(Mana mana)
          Called to specify the mana component 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(Mana mana)
          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(Mana) function.
 

Method Detail

clickOn

boolean clickOn(Mana mana)
Called to specify the mana component chosen for the current action by the handed player

Parameters:
mana - the clicked mana component 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(Mana mana)
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(Mana) function.

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