Files
GTSchoolShit/CS1322/p6/MyWay2/CGrid.java
2025-06-07 01:59:34 -04:00

56 lines
1.0 KiB
Java

/**
* <PRE>
* CGrid.java
*
* Revisions: 1.0 Nov. 17, 2002
* Created the CGrid class
*
* </PRE>
*
* @author <A HREF="mailto:gtg184g@mail.gatech.edu">Jose Manuel Caban</A>
* @version Version 1.0, Nov. 17, 2002
*/
import java.io.*;
public class CGrid {
/**
*2D array to store the game data
*/
private CCoord[][] grid;
////////////////
//Constructors//
////////////////
public CGrid(int iLength, int iHeight){
grid = new CCoord[iLength][iHeight];
}
///////////
//Methods//
///////////
public CCoord get(int x, int y){
return grid[x][y];
}
public void set(int x, int y, CCoord c){
grid[x][y] = c;
}
/**
* Debugging main for class CGrid.
* This method will rigorously test my code.
*
* <br><br>
* @param args a String array of command line arguments.
*/
public static void main(String[] args) {
}// end of main(String[] args)
}// end of class CGrid