first commit

This commit is contained in:
Jose Caban
2025-06-07 01:59:34 -04:00
commit 388ac241f0
3558 changed files with 9116289 additions and 0 deletions

116
CS1322/p6/MyWay/CCoord.java Normal file
View File

@@ -0,0 +1,116 @@
/**
* <PRE>
* Coord.java
*
* Revisions: 1.0 Nov. 12, 2002
* Created the Coord class
* 1.1 Nov. 12, 2002
* Compiled, Commented, Finished
*
* </PRE>
*
* @author <A HREF="mailto:gtg184g@mail.gatech.edu">Jose Manuel Caban</A>
* @version Version 1.1, Nov. 12, 2002
*/
/*
*Everything from the Model and Control are extenstions of Coord for the
*simple reason that everything in the 2D world will be a coordinate on a Grid
*handled by a separate class
*/
public class CCoord {
/**
*Points
*/
private int x;
private int y;
private int h;
///////////////
//Constructor//
///////////////
/**
*Default Constructor
*sets all values to 0
*/
public CCoord(){
x = 0;
y = 0;
h = 0;
}
/**
*Takes in params for all values
*@param x, the x coordinate
*@param y, the y coordinate
*@param h, the height value
*/
public CCoord(int x, int y, int h){
this.x = x;
this.y = y;
this.h = h;
}
///////////////////////
//Accessors/Modifiers//
///////////////////////
/**
*@return value of x
*/
public int getX(){
return x;
}
/**
*@param x, the new x coordinate
*/
public void setX(int x){
this.x = x;
}
/**
*@return value of y
*/
public int getY(){
return y;
}
/**
*@param y, the new y value
*/
public void setY(int y){
this.y = y;
}
/**
*@return the height
*/
public int getH(){
return h;
}
/**
*@param h, the new height
*/
public void setH(int h){
this.h = h;
}
/*********************************************/
/**
* Debugging main for class Coord.
* 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 Coord