Exemplo n.º 1
0
        static void Main()
        {
            GameBoard board = new GameBoard();

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