Beyond_Beyaan.StarSystem.StarSystem C# (CSharp) Метод

StarSystem() публичный Метод

public StarSystem ( string name, int id, int x, int y, Color color, string description, Random r ) : System
name string
id int
x int
y int
color Color
description string
r System.Random
Результат System
        public StarSystem(string name, int id, int x, int y, Color color, string description, Random r)
        {
            this.Sprite = SpriteManager.GetSprite("Star", r);
            this.name = name;
            this.x = x;
            this.y = y;
            this.size = 1;
            ID = id;

            Color = color;

            exploredBy = new List<Empire>();
            planets = new List<Planet>();

            //type = StarType.NORMAL;

            string reason;
            StarName = new BBLabel();
            StarName.Initialize(0, 0, name, Color.White, out reason);
            EmpiresWithFleetAdjacentLastTurn = new List<Empire>();
            EmpiresWithFleetAdjacentThisTurn = new List<Empire>();
            EmpiresWithPlanetsInThisSystem = new List<Empire>();
            OwnerPercentage = new Dictionary<Empire, float>();
        }

Same methods

StarSystem::StarSystem ( string name, int id, int x, int y, Color color, string description, int minPlanets, int maxPlanets, Random r ) : System