net.sf.magicproject.action
Interface LoopAction

All Known Implementing Classes:
MoveCard, MoveObject, RemoveObject

public interface LoopAction

Since:
0.80
Author:
Fabrice Daugan

Method Summary
 boolean continueLoop(ContextEventListener context, int loopingIndex, Ability ability)
          Continue this action, giving the next index of this loop.
 int getStartIndex()
          Return the first index of this loop.
 

Method Detail

continueLoop

boolean continueLoop(ContextEventListener context,
                     int loopingIndex,
                     Ability ability)
Continue this action, giving the next index of this loop.

Parameters:
context - is the context attached to this action.
loopingIndex - the current index
ability - is the ability owning this test. The card component of this ability should correspond to the card owning this test too.
Returns:
true if the stack can be resolved just after this action.

getStartIndex

int getStartIndex()
Return the first index of this loop.

Returns:
the first index of this loop.


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