Example #1
0
        static void Main()
        {
            GameBoard board = new GameBoard();

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