csci3081/testing/robot.h
Michael Zhang 1ba4536588
f
2018-01-29 17:24:20 -06:00

24 lines
459 B
C++

#ifndef TESTS_ROBOT_H_
#define TESTS_ROBOT_H_
struct Position {
int x;
int y;
Position() : x(0), y(0) {}
Position(int inX, int inY) : x(inX), y(inY) {}
};
class Robot {
public:
Robot();
Robot(int r, int x, int y);
bool CheckOverlap(const Robot &robot2);
Position get_position(void) const { return position; }
int get_radius(void) const { return radius; }
private:
int radius;
Position position;
};
#endif