Exemple #1
0
 public void Reset(List<IAI> Players)
 {
     timing = new TimingClass();
     Timing.TimeSpeed = 1.0f;
     Viewer.CameraPosition = new Microsoft.Xna.Framework.Vector3(0, 0, 9000);
     players = Players;
     playersText = new string[players.Count];
     playersTotalUpdateTime = new float[players.Count];
     coreTotalUpdateTime = 0;
     units.Clear();
     shots.Clear();
     gameObjects = new GameObjectsClass();
     AddUnits();
     for (CurrentPlayer = 0; CurrentPlayer < players.Count; CurrentPlayer++)
     {
         playersText[CurrentPlayer] = "";
         players[CurrentPlayer].Init(CurrentPlayer, this);
     }
     gameEnd = false;
     destroyers = new int[players.Count];
     corvettes = new int[players.Count];
     cruisers = new int[players.Count];
     total = new int[players.Count];
     gameEndSoon = false;
 }
Exemple #2
0
 public Core(int ScreenWidth, int ScreenHeight, ContentManager content, Microsoft.Xna.Framework.GraphicsDeviceManager graphics)
 {
     gameObjects = new GameObjectsClass();
     timing = new TimingClass();
     viewer = new Viewer(ScreenWidth, ScreenHeight, content, graphics);
     units = new List<Unit>();
     shots = new Shots(units);
 }