static void Main() { GameBoard board = new GameBoard(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new GameBoardForm(board)); }
public GameBoardControl() { this.board = null; InitializeComponent(); this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true); this.UpdateStyles(); }
public PatrolObject(GameBoard board, GameSquare[] path) : base(board) { this.path = path; }
public HostileObject(GameBoard board) : base(board) { }
public ProbeObject(GameBoard board, Direction[] startScans, bool rotateClockwise) : base(board) { this.startScans = startScans; this.rotateClockwise = rotateClockwise; }
public GameObject(GameBoard board) { this.board = board; location = null; }
public PlayerObject(GameBoard board) : base(board) { }
public GameBoardForm(GameBoard board) { InitializeComponent(); gamePanel.Initialize(board); }
public void Initialize(GameBoard board) { moveCount = 0; gameStatusStripLabel.Text = "Distance Traveled: " + ((float)moveCount) / 2 + " Parsecs"; this.board = board; }