public InteractiveMove_PickupAndPlace(GameState game, BoardView boardView) { _game = game; _boardView = boardView; _boardView.CarryClear(); _boardView.CarryVisible = false; }
public InteractiveMove_PlaceFromReserve(GameState game, BoardView boardView, int pieceID) { _game = game; _boardView = boardView; _pieceID = pieceID; _boardView.CarryClear(); _boardView.CarryAdd(pieceID); _boardView.CarryVisible = true; }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); _game = GameState.NewGame(5); _ai = new TakAI_V4(_game.Size); _evaluator = _ai.Evaluator; _boardView = new BoardView(); _boardView.Dock = DockStyle.Fill; _boardView.Game = _game; this.Controls.Add(_boardView); //_boardView.MouseOverSpotChanged += boardView_MouseOverSpotChanged; }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); _boardView = new BoardView(); _boardView.Dock = DockStyle.Fill; this.Controls.Add(_boardView); _boardView.BringToFront(); _boardView.MouseClick += boardView_MouseClick; _boardView.MouseOverSpotChanged += boardView_MouseOverSpotChanged; InitButtonImages(); NewGame(DefaultGameSize); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); _boardView = new BoardView(); _boardView.Dock = DockStyle.Fill; this.Controls.Add(_boardView); _boardView.BringToFront(); _boardView.MouseClick += boardView_MouseClick; _boardView.MouseOverSpotChanged += boardView_MouseOverSpotChanged; InitButtonImages(); NewGame(DefaultGameSize); if (System.Environment.GetCommandLineArgs().Contains("debug")) { TakEngine.Properties.Settings.Default.debug = true; } }