summaryrefslogtreecommitdiffhomepage
path: root/src/tile.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-05 21:32:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-06 01:35:11 +0100
commit0a6612286bfa8c2503c757da2b39da37aa05deaf (patch)
tree3606dbe2ee59026f0fcdba7377034dfcab13da0d /src/tile.hpp
parent2679d49a53a3f9825ce855f6ed25b3b045ec5aa1 (diff)
src/chunk: plug in lqt for collision detection
Diffstat (limited to 'src/tile.hpp')
-rw-r--r--src/tile.hpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/tile.hpp b/src/tile.hpp
index 543b70b6..7a6604dd 100644
--- a/src/tile.hpp
+++ b/src/tile.hpp
@@ -1,32 +1,18 @@
#pragma once
#include "tile-image.hpp"
#include "scenery.hpp"
-#include "pass-mode.hpp"
namespace floormat {
struct chunk;
struct anim_atlas;
-struct pass_mode_ref final
-{
- pass_mode_ref(chunk& c, std::uint8_t i) noexcept;
- pass_mode_ref& operator=(pass_mode x) noexcept;
- pass_mode_ref& operator=(const pass_mode_ref& x) noexcept;
- operator pass_mode() const noexcept;
-
-private:
- chunk* _chunk;
- std::uint8_t i;
-};
-
struct tile_proto final
{
std::shared_ptr<tile_atlas> ground_atlas, wall_north_atlas, wall_west_atlas;
std::shared_ptr<anim_atlas> scenery_atlas;
variant_t ground_variant = 0, wall_north_variant = 0, wall_west_variant = 0;
struct scenery scenery_frame;
- pass_mode passability = pass_mode{0};
tile_image_proto ground() const noexcept;
tile_image_proto wall_north() const noexcept;
@@ -60,9 +46,6 @@ struct tile_ref final
std::shared_ptr<const tile_atlas> wall_west_atlas() const noexcept;
std::shared_ptr<const anim_atlas> scenery_atlas() const noexcept;
- pass_mode_ref passability() noexcept;
- pass_mode passability() const noexcept;
-
explicit operator tile_proto() const noexcept;
struct chunk& chunk() noexcept { return *_chunk; }