public void Process(CompleteTurn turn)
        {
            try
            {
                turn.Graphics.DoTurns(arena.Display);
                Graphs.Update(turn.Statistics);

                InvalidateVisual();
                arena.InvalidateVisual();
                Graphs.InvalidateVisual();

                if (SlowDraw)
                {
                    // This forces it to wait until the drawing is complete
                    Dispatcher.Invoke(delegate { }, DispatcherPriority.ContextIdle);
                }
            }
            catch (Exception)
            {
                // Do nothing
            }
        }
Ejemplo n.º 2
0
 private void EndTurn()
 {
     TurnIsActive = false;
     CompleteTurn?.Invoke();
 }