BlueBubble 1.0
A recommendation algorithm for movies based on a Netlfix database
Loading...
Searching...
No Matches
coordinates.cc
Go to the documentation of this file.
1#include "coordinates.h"
2#include <iostream>
3
7 return x;
8}
9
13 return y;
14}
15
18 std::cout << "x:" << x << " y:" << y << std::endl;
19}
20
24 x = move_to.get_x();
25 y = move_to.get_y();
26}
a class representing coordinates
Definition coordinates.h:5
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