Ejemplo n.º 1
0
 public void window_OnResetStatisticsButtonPressed(HudWindow sender)
 {
     ResetAllStatistics();
     sender.DisplayStatistics(GetStatistics());
 }
Ejemplo n.º 2
0
 public void Remove(HudWindow window)
 {
     Trace.Assert(window != null, "Trying to remove a null reference to a hud window");
     window.Close();
     windowsList.Remove(window);
 }
Ejemplo n.º 3
0
 private void SetWindowLocation(HudWindow w, Point location)
 {
     w.Location = location;
 }
Ejemplo n.º 4
0
 public void Add(HudWindow window)
 {
     windowsList.Add(window);
 }
Ejemplo n.º 5
0
        /* The user requested that all statistics get reset */
        public void window_OnResetAllStatisticsButtonPressed(HudWindow sender)
        {
            statistics.PrepareStatisticsForNewRound();

            foreach (Player p in PlayerList) {
                p.ResetAllStatistics();
                if (p.HudWindow != null) p.HudWindow.DisplayStatistics(p.GetStatistics()); // TODO: is this thread safe?
            }
        }