net.sf.magicproject.stack.phasetype
Class PhaseType
java.lang.Object
net.sf.magicproject.stack.phasetype.PhaseType
public class PhaseType
- extends java.lang.Object
- Since:
- 0.54
- Author:
- Fabrice Daugan
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 |
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
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 :
Structure of InputStream : Data[size]
- phase name + '\0' [...]
- phase identifiant [1]
- empty stack playable, idCards for current player [2]
- empty stack playable, idCards for non-current player [2]
- middle resolution, playable idCards for current player [2]
- middle resolution, playable idCards for non-current player [2]
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
canICast
public boolean canICast(int idActivePlayer,
int idCard)
- Tell if we can cast a card with idCard
- Parameters:
idActivePlayer
- the active player identifiantidCard
- id of card we would casting
- Returns:
- true if we can cast a card with idCard
Copyright © 2003-2007 Magic-Project. All Rights Reserved.