BlueBubble 1.0
A recommendation algorithm for movies based on a Netlfix database
Loading...
Searching...
No Matches
coordinates.h
Go to the documentation of this file.
1#ifndef COORDINATES
2#define COORDINATES
3
6 private:
7 int x;
8 int y;
9 public:
10 int get_x();
11 int get_y();
12 coordinates(int _x, int _y):
13 x(_x), y(_y)
14 {}
15 void move(coordinates move_to);
16 void print();
17};
18
19#endif
a class representing coordinates
Definition coordinates.h:5
coordinates(int _x, int _y)
Definition coordinates.h:12
int get_x()
a function to get the x-axis attribute
Definition coordinates.cc:6
int get_y()
a function to get the y-axis attribute
void print()
print the coordinates, utilized for debugging purposes
void move(coordinates move_to)
change the coordinate values to move the associated piece