// *************************************************
// *                                               *
// *  point.C (MP3)                                * 
// *                                               *
// *  Implementation for a point class             *
// *                                               *
// *  Written 13 February 1999 by Jason Zych       *
// *                                               *
// *************************************************

#include "point.h"

// Point
//    - default constructor
//    - initializes object to have default values
Point::Point()
{
   xCoord = 0;
   yCoord = 0;
}



// Point
//    - constructor
//    - parameters : xLoc - the x-coord of the location
//                 : yLoc - the y-coord of the location
//    - initializes object to parameter values
Point::Point(int xLoc, int yLoc)
{
   xCoord = xLoc;
   yCoord = yLoc;
}



// XCoord
//    - return value : integer coordinate value
//    - returns x-coord of current location
int Point::XCoord() 
{
   return xCoord; 
}


// YCoord
//    - return value : integer coordinate value
//    - returns y-coord of current location
int Point::YCoord() 
{
   return yCoord; 
}



// SetCoordinates
//    - parameters : xLoc - the x-coord of the new location 
//                 : yLoc - the y-coord of the new location
//    - sets location equal to the parameter location
void Point::SetCoordinates(int xLoc, int yLoc)
{
   xCoord = xLoc; 
   yCoord = yLoc; 
} 

