|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.stack.EventManager
public final class EventManager
This class manage the turn structure : phase order, loop and phase's UI manager(highlightment, breakpoints, pass)
Field Summary | |
---|---|
static int |
currentIdPhase
is the current idPhase (not the index of phase) |
static javax.swing.JLabel |
moreInfoLbl
The moreInfo label |
static int |
nextCurrentPlayer
The next 'currentplayer' for the next phase. |
static int |
nextPhaseIndex
The next 'currentIdPhase'. |
static boolean |
parsingEndPhaseEvent
This markup indicates we are currently parsing the END_PHASE_... event. |
static int |
phaseIndex
represents the current index of phase |
static javax.swing.JLabel |
turnsLbl
The turn label |
static PhaseType[] |
turnStructure
List of successive phase of any turn |
Method Summary | |
---|---|
static MPhase |
currentPhase()
return the phase type associate to the current phase |
static PhaseType |
currentPhaseType()
return the phase type associate to the current phase |
static void |
gotoNextPhase()
Goto the next phase.For each player (current first), if mana pool isn't empty -> mana burn. phase will be ID__BEFORE_PHASE_UNTAP |
static void |
init()
Create an instance of MEventManager by reading a file |
static void |
init(java.io.FileInputStream dbStream,
java.lang.String settingFile)
remove all events in the stack of this phase, read new system abilities, turn structure and set the current phase. |
static boolean |
parsinfBeforeEnd()
Return true if we are currently parsing the "before phase" event. |
static void |
start()
Go to the first phase of first turn |
static void |
updatePhasesGUI()
Update the phases GUI : colors indicating the current phases, and the handed player |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean parsingEndPhaseEvent
public static int currentIdPhase
public static javax.swing.JLabel turnsLbl
public static javax.swing.JLabel moreInfoLbl
public static PhaseType[] turnStructure
public static int nextCurrentPlayer
public static int nextPhaseIndex
public static int phaseIndex
Method Detail |
---|
public static void init()
public static void init(java.io.FileInputStream dbStream, java.lang.String settingFile) throws java.io.IOException
dbStream
- the mdb file containing rulessettingFile
- setting file attached to this mdb
java.io.IOException
public static void start()
public static void gotoNextPhase()
public static void updatePhasesGUI()
public static PhaseType currentPhaseType()
public static MPhase currentPhase()
public static boolean parsinfBeforeEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |