Final Commit
[progcomp2013.git] / agents / java / Square.java
1 /**
2  * @class Square
3  * @purpose Represent a Square on the board; not necessarily occupied
4  */
5 public class Square
6 {
7         public Square(int new_x, int new_y, Piece new_piece)
8         {
9                 this.x = new_x; 
10                 this.y = new_y; 
11                 this.piece = new_piece;
12         }
13         public  Square(Square cpy)
14         {
15                 this.x = cpy.x;
16                 this.y = cpy.y;
17                 this.piece = cpy.piece;
18         }
19         public  int x;
20         public int y; // position of the square
21         public  Piece piece; // Piece that is in the Square (null if unoccupied)
22 };

UCC git Repository :: git.ucc.asn.au