Some-Shooter-Mooter/source/point.cpp
2014-04-22 03:06:42 +03:00

31 lines
304 B
C++

#include "point.h"
int Point::getY() const
{
return y_;
}
int Point::getX() const
{
return x_;
}
void Point::setX(int x)
{
x_=x;
}
void Point::setY(int y)
{
y_=y;
}
bool Point::operator==(const Point p) const
{
if((x_==p.getX())&&(y_==p.getY()))
{
return true;
}
else
{
return false;
}
}