1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-28 04:17:39 +00:00

ru:: platforms can have multiple types

This commit is contained in:
Zeno Rogue
2025-05-17 11:10:07 +02:00
parent c19bc4800b
commit 9359f58f77
2 changed files with 17 additions and 8 deletions

View File

@@ -305,7 +305,9 @@ extern man m;
struct moving_platform : public entity {
xy ctr;
ld radius, shift;
xy siz() override { return {36, 12}; }
virtual int width() { return 3; }
virtual eWall platform_type() { return wWall; }
xy siz() override { return {12.*width(), 12}; }
string glyph() override { return "#"; }
color_t color() override { return 0xFFFFFFFF; }
virtual xy location_at(ld t) = 0;