summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-27 15:28:05 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-27 15:28:05 +0100
commitd2fcaad5425acb4a50138e793e3dcecc6600e4d3 (patch)
tree76fd32dd74a661d0ef30b65bba5d56d4f8b55881 /src/scenery.hpp
parentc145f1f806b49c1edd4b53aeeb7865c506d67949 (diff)
wip scenery list
Diffstat (limited to 'src/scenery.hpp')
-rw-r--r--src/scenery.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/scenery.hpp b/src/scenery.hpp
index aabf7315..c1e2b5ea 100644
--- a/src/scenery.hpp
+++ b/src/scenery.hpp
@@ -31,17 +31,18 @@ struct scenery final
float delta = 0;
frame_t frame = NO_FRAME;
- rotation r : 3 = rotation::N;
- std::uint8_t passable : 1 = false;
- std::uint8_t active : 1 = false;
- std::uint8_t closing : 1 = true;
- scenery_type type : 2 = scenery_type::none;
+ rotation r : 3 = rotation::N;
+ std::uint8_t passable : 1 = false;
+ std::uint8_t blocks_view : 1 = false; // todo
+ std::uint8_t active : 1 = false;
+ std::uint8_t closing : 1 = false;
+ std::uint8_t animated : 1 = false; // todo
+ scenery_type type : 3 = scenery_type::none;
scenery() noexcept;
scenery(none_tag_t) noexcept;
- scenery(generic_tag_t, rotation r, const anim_atlas& atlas, bool passable = false, frame_t frame = 0);
+ scenery(generic_tag_t, rotation r, const anim_atlas& atlas, frame_t frame = 0, bool passable = false, bool blocks_view = false, bool animated = false, bool active = false);
scenery(door_tag_t, rotation r, const anim_atlas& atlas, bool is_open = false);
- scenery(float dt, frame_t frame, rotation r, bool passable, scenery_type type);
bool can_activate() const noexcept;
bool activate(const anim_atlas& atlas);