Exemple #1
0
        public void Draw(Graphics g, GameState gs, NonGameState ngs)
        {
            g.FillRectangle(blackBrush, bounds);
            g.DrawRectangle(whitePen, gs.Bounds);

            for (int i = 0; i < gs.NumberOfShips; i++)
            {
                DrawShip(g, i, gs);
                DrawConnectState(g, i, gs.Ships[i], ngs.players[i]);
            }

            RenderChecksum(g, 40, Color.LightGray, ngs.ChecksumPeriodic);
            RenderChecksum(g, 56, Color.Gray, ngs.ChecksumNow);
        }
Exemple #2
0
 public static void Init(GameState _gs, NonGameState _ngs, GGPOPerformance _perf)
 {
     gs   = _gs;
     ngs  = _ngs;
     perf = _perf;
 }
 public static void Init(GameState _gs, NonGameState _ngs)
 {
     gs  = _gs;
     ngs = _ngs;
 }