コード例 #1
0
 public ListedGeneticSettingsGUI(SnakeAISettings snakeAISettings, bool canEdit) : base(canEdit)
 {
     this.snakeAISettings = snakeAISettings;
     geneticSettings      = snakeAISettings.GeneticSettings;
     CreateItems();
     AddSettingItems();
 }
コード例 #2
0
 public ListedNetworkSettingsGUI(SnakeAISettings snakeAISettings, bool canEdit) : base(canEdit)
 {
     this.snakeAISettings = snakeAISettings;
     networkSettings      = snakeAISettings.NetworkSettings;
     CreateItems();
     AddSettingItems();
 }
コード例 #3
0
ファイル: SettingsGUI.cs プロジェクト: tauerlund/Playtest-AI
        public SettingsGUI(SnakeAISettings snakeAISettings)
        {
            this.snakeAISettings = snakeAISettings;

            this.geneticSettings = snakeAISettings.GeneticSettings;
            this.networkSettings = snakeAISettings.NetworkSettings;
            this.snakeSettings   = snakeAISettings.SnakeSettings;

            StartPosition = FormStartPosition.CenterScreen;

            InitializeComponent();
        }
コード例 #4
0
        public TrainSnakeGUI(SnakeAISettings snakeAISettings)
        {
            this.snakeAISettings = snakeAISettings;

            Width  = 450;
            Height = 400;

            Text = "Train AI";

            StartPosition = FormStartPosition.CenterScreen;

            InitializeComponent();
        }
コード例 #5
0
        public MainMenuGUI()
        {
            Width         = 450;
            Height        = 400;
            StartPosition = FormStartPosition.CenterScreen;

            Text = "Snake AI Playtest";

            NetworkSettings = MakeNetworkSettings();
            SnakeSettings   = MakeSnakeSettings();
            GeneticSettings = MakeGeneticSettings(NetworkSettings, SnakeSettings);

            SnakeAISettings = new SnakeAISettings(GeneticSettings, NetworkSettings, SnakeSettings);

            InitializeComponent();
        }