I have a situation where I end the turn and the phase at the same time, the new phase has it's own conditions of endTurnIf and endPhaseIf.
- The
processMove set's the variable conf end then activates the endTurnEvent. [phase 0]
- The
endTurnEvent activates the endPhaseEvent. [phase 1]
- The
processMove activates the endPhaseEvent of the conf variable set in the begining. [phase 0]
This way when the endPhaseIf at the end of the processMove is called, it calls the phase 0 during the phase 1.
I have a situation where I end the turn and the phase at the same time, the new phase has it's own conditions of endTurnIf and endPhaseIf.
processMoveset's the variableconfend then activates theendTurnEvent. [phase0]endTurnEventactivates theendPhaseEvent. [phase1]processMoveactivates theendPhaseEventof theconfvariable set in the begining. [phase0]This way when the
endPhaseIfat the end of theprocessMoveis called, it calls the phase0during the phase1.