net.sf.magicproject.stack.phasetype
Class StackCondition

java.lang.Object
  extended by net.sf.magicproject.stack.phasetype.StackCondition
Direct Known Subclasses:
EmptyStack, MiddleResolution

public abstract class StackCondition
extends java.lang.Object

Since:
0.60
Author:
Fabrice Daugan

Field Summary
 int idCardsForOPPONENT
          IdCard that non-current player can play during this phase
 int idCardsForYOU
          IdCard that current player can play during this phase
 
Method Summary
abstract  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
 

Field Detail

idCardsForYOU

public int idCardsForYOU
IdCard that current player can play during this phase


idCardsForOPPONENT

public int idCardsForOPPONENT
IdCard that non-current player can play during this phase

Method Detail

canICast

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

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.