summaryrefslogtreecommitdiffhomepage
path: root/src/tile.hpp
blob: 52d06b9d3365fab029c62b7ed89d9deb855a47bc (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 "compat/defs.hpp"
#include "tile-image.hpp"

namespace floormat {

struct tile final
{
    enum pass_mode : std::uint8_t { pass_ok, pass_blocked, pass_shoot_through, };

    tile_image ground, wall_north, wall_west;
    pass_mode passability = pass_ok;

    constexpr tile() = default;

    fm_DECLARE_DEPRECATED_COPY_ASSIGNMENT(tile);
    fm_DECLARE_DEFAULT_MOVE_ASSIGNMENT_(tile);
};

bool operator==(const tile& a, const tile& b) noexcept;

} //namespace floormat