示例#1
0
文件: Program.cs 项目: dolane9/JGR
        static void Main(string[] args)
        {
            Map map = new Map(10, 10);

            // Test Adding symbol to board
            MapPoint mp = new MapPoint("A", 10);
            BoardPiece bp = new BoardPiece("*");
            BoardSquare bs = new BoardSquare(mp, bp);
            Point p = new Point(0, 0);

            map.AddPieceToBoard(bs);
            map.PrintLong();

            // Wait for input, stops console from closing
            Console.ReadKey();
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MapPoint"/> class.
 /// </summary>
 /// <param name="mapPoint">The location of this BoardSquare on the Map.</param>
 /// <param name="piece">The BoardPiece that is on this BoardSquare on the Map.</param>
 public BoardSquare(MapPoint mapPoint, BoardPiece piece)
 {
     this.Location = mapPoint;
     this.Piece = piece;
 }