net.sf.magicproject.stack.phasetype
Class EmptyStack

java.lang.Object
  extended by net.sf.magicproject.stack.phasetype.StackCondition
      extended by net.sf.magicproject.stack.phasetype.EmptyStack

public class EmptyStack
extends StackCondition

Author:
Fabrice Daugan

Field Summary
 
Fields inherited from class net.sf.magicproject.stack.phasetype.StackCondition
idCardsForOPPONENT, idCardsForYOU
 
Method Summary
 boolean canICast(int idCard, boolean isYou)
          Tell if a player can cast a card with this idCard.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

canICast

public boolean canICast(int idCard,
                        boolean isYou)
Tell if a player can cast a card with this idCard.

Specified by:
canICast in class StackCondition
Parameters:
idCard - id of card we would casting
isYou - is the current player waiting for that
Returns:
true if the player can cast a card with this idCard


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