blob: a58d129ab40727a64e51ab44ef92e90d6dca0cac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include "compat/defs.hpp"
#include "compat/assert.hpp"
#include "tile-defs.hpp"
#include <cstdint>
#include <memory>
namespace floormat {
struct tile_atlas;
struct tile_image final
{
std::shared_ptr<tile_atlas> atlas;
std::uint8_t variant = 0xff;
explicit operator bool() const noexcept { return !!atlas; }
};
struct tile final
{
enum class pass_mode : std::uint8_t { pass_blocked, pass_ok, pass_shoot_through, };
using enum pass_mode;
tile_image ground_image, wall_north, wall_west;
pass_mode passability = pass_shoot_through;
constexpr tile() = default;
tile(tile&&) = default;
DECLARE_DEPRECATED_COPY_ASSIGNMENT(tile);
};
} //namespace floormat
|