#include #include "position/Position.h" #include "tile/Tile.h" using namespace std; int main() { cout << Position(2, 5) << endl; cout << Position(-1, 9) << endl; cout << Position(0, 0) << endl; cout << Position(0, 0) + Position(1, 6) << endl; auto p1 = Position(8, 8); auto p2 = Position(4, 1); cout << p1 << endl; p1 += p2; cout << p1 << endl; cout << (p1 == p2) << endl; cout << (p1 != p2) << endl; p1 = Position(4, 1); cout << (p1 == p2) << endl; cout << (p1 != p2) << endl; auto t1 = Tile(p1, EMPTY); cout << t1.pos() << " -- type: " << t1.getType() << " -- traversable?: " << t1.traversable() << endl; auto t2 = Tile(p2, WALL); cout << t2.pos() << " -- type: " << t2.getType() << " -- traversable?: " << t2.traversable() << endl; return 0; }