Esempio n. 1
0
 public void NewShip(mapObject[,] map, Planet p)
 {
     Point newShip = Ship.SearchInArea(map, p.Location, mapObject.None);
     switch (p.createObj.Pic[0].TypeShip)
     {
         case TypeShip.Colonist:
             map[newShip.X, newShip.Y] = mapObject.ColonistYou;
             break;
         case TypeShip.Destroyer:
             map[newShip.X, newShip.Y] = mapObject.DestroyerYou;
             break;
     }
     Ships.Add(newShip, new Ship());
 }
Esempio n. 2
0
 public void AddPlanet(Planet planet)
 {
     Planets.Add(planet);
 }