/** *
 *  CCoord.java
 *
 *  Revisions: 1.0 Nov. 23, 2002
 *               Created the CCoord class, scratched old code
 *			   1.1 Nov. 23, 2002
 *				 Compiled, FInished, Commented
 *			   
 *
 *  
* * @author Jose Manuel Caban * @version Version 1.1, Nov. 23, 2002 */ /** *This class will be used to store Coordinate values relative to the grid *not the x,y coord relative to the resolution */ public class CCoord{ /** *Stores the x coord */ protected int iX; /** *Stores the y coord */ protected int iY; /** *Stores the Height of the ground, ground level = 0 */ protected int iZ; //////////////// //Constructors// //////////////// /** *Default Constructor, sets values to 1,1,0 */ public CCoord(){ this(1,1,0); } /** *@param x, the x coord *@param y, the y coord *@param z, the z coord */ public CCoord(int iX, int iY, int iZ){ this.iX = iX; this.iY = iY; this.iZ = iZ; } /////////////////////////// //Accessors and Modifiers// /////////////////////////// /** *@return, the value of X */ public int getX(){ return iX; } /** *@return, the value of Y */ public int getY(){ return iY; } /** *@return, the value of Z */ public int getZ(){ return iZ; } /** *@param x, the x coord *@param y, the y coord *@param z, the z coord */ public void setParams(int iX, int iY, int iZ){ this.iX = iX; this.iY = iY; this.iZ = iZ; } public void setParams(CCoord c){ this.iX = c.iX; this.iY = c.iY; this.iZ = c.iZ; } public String toString(){ return ("[X: "+iX+" Y: "+iY+" Z: "+iZ+"]"); } }//end class::CCoord