summaryrefslogtreecommitdiff
path: root/include/Map/TilePos.hpp
blob: 46f32076841e4c9c189fa7ee2809c6c7b19d72a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "global.h"
#include "types.h"

class TilePos {
public:
    u8 x;
    u8 y;

    inline TilePos() :
        x(0),
        y(0) {}
    inline TilePos(bool) {}
    inline TilePos(u8 x, u8 y) :
        x(x),
        y(y) {}
};

inline bool operator==(TilePos a, TilePos b) {
    return (a.x == b.x && a.y == b.y);
}