net.sf.magicproject.stack.phasetype
Class PhaseType

java.lang.Object
  extended by net.sf.magicproject.stack.phasetype.PhaseType

public class PhaseType
extends java.lang.Object

Since:
0.54
Author:
Fabrice Daugan

Field Summary
 java.awt.Image highLightedIcon
           
 int id
          Identifiant of this phase type
 java.awt.Image normalIcon
           
 java.lang.String phaseName
          Phase name of this phase type
 
Constructor Summary
PhaseType(java.io.InputStream dbFile)
          Creates a new instance of PhaseType reading in the specified stream and following the following structure : Structure of InputStream : Data[size] phase name + '\0' [...]
 
Method Summary
 boolean canICast(int idActivePlayer, int idCard)
          Tell if we can cast a card with idCard
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

phaseName

public java.lang.String phaseName
Phase name of this phase type


id

public int id
Identifiant of this phase type


highLightedIcon

public java.awt.Image highLightedIcon

normalIcon

public java.awt.Image normalIcon
Constructor Detail

PhaseType

public PhaseType(java.io.InputStream dbFile)
          throws java.io.IOException
Creates a new instance of PhaseType reading in the specified stream and following the following structure : Picure's name used for this phase corresponds to this phase name.

Parameters:
dbFile - straem where phase name would be read
Throws:
java.io.IOException - if io exception occurred
Method Detail

canICast

public boolean canICast(int idActivePlayer,
                        int idCard)
Tell if we can cast a card with idCard

Parameters:
idActivePlayer - the active player identifiant
idCard - id of card we would casting
Returns:
true if we can cast a card with idCard


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