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()); }
public void AddPlanet(Planet planet) { Planets.Add(planet); }