public NebulaFieldsController(StarGenerator starGenerator, Settings settings, GalaxyMap map) { Settings = settings; InitializeComponent(); //stars = _stars; StarGenerator = starGenerator; Map = map; }
public NebulaFieldsWorker(StarGenerator starGenerator, Settings spreadContract, GalaxyMap map, System.Windows.Forms.TextBox textbox = null) { nebulas = new List <NebulaField>(); StarGenerator = starGenerator; Contract = spreadContract; StarsPerPlayer = Contract.StarsPerPlayer; minDistance = Contract.minDistance; distanceBetweenSuns = Contract.distanceBetweenSuns; starsInRow = Contract.starsInRow; xAxis = Contract.xAxis; Textbox = textbox; Map = map; }
public Form1() { InitializeComponent(); this.panel1.MouseWheel += panel1_MouseWheel; starGenerator = new StarGenerator(); DrawAreaSize = panel1.Width; FetchValues(); radioButton1.Select(); CalcFieldSize(); #if DEBUG button3.Visible = true; #else button3.Visible = false; #endif settings = readConfig(); map = new GalaxyMap(settings); UpperLeftCorner = new Point(settings.starOffset, settings.starOffset); }