1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 18:54:48 +00:00

movei::dir_force function

This commit is contained in:
Zeno Rogue 2021-05-17 14:23:20 +02:00
parent 42f64f5bcf
commit d951a84cc6

View File

@ -489,6 +489,7 @@ struct movei {
int rev_dir_or(int x) const { return proper() ? s->c.spin(d) : x; }
int rev_dir_mirror() const { return proper() ? s->c.spin(d) : d; }
int rev_dir_force() const { hassert(proper()); return s->c.spin(d); }
int dir_force() const { hassert(proper()); return d; }
bool mirror() { return s->c.mirror(d); }
};
#endif