public override bool Notify(GenericEvent ev) { return(ev.GetEventType() == EventType.LockIn); throw new NotImplementedException( "The picking phase works automaticaly at the moment, no need for events (recived event: " + ev.GetEventType() + ")"); }
public void Notify(GenericEvent action) { if (action.GetEventType() == EventType.GamePhaseChanged || action.GetEventType() == EventType.GameRoundPhaseChanged) { return; } if ( action.GetEventType() != EventType.GameStart && action.GetEventType() != EventType.Pause && action.GetEventType() != EventType.Unpause) { if (!currentPhase.Notify(action)) { throw new BadEventException(action.GetEventType().ToString(), currentPhase.GetType().FullName); } } else { currentPhase.Notify(action); } }