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:
parent
42f64f5bcf
commit
d951a84cc6
@ -489,6 +489,7 @@ struct movei {
|
|||||||
int rev_dir_or(int x) const { return proper() ? s->c.spin(d) : x; }
|
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_mirror() const { return proper() ? s->c.spin(d) : d; }
|
||||||
int rev_dir_force() const { hassert(proper()); return s->c.spin(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); }
|
bool mirror() { return s->c.mirror(d); }
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user