mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-27 07:22:51 +00:00
ru:: operator == in xy
This commit is contained in:
parent
8140577a6e
commit
37b450b29f
@ -161,6 +161,7 @@ struct xy {
|
|||||||
xy& operator *= (ld s) { x *= s; y *= s; return self; }
|
xy& operator *= (ld s) { x *= s; y *= s; return self; }
|
||||||
xy& operator *= (xy b) { x *= b.x; y *= b.y; return self; }
|
xy& operator *= (xy b) { x *= b.x; y *= b.y; return self; }
|
||||||
xy& operator /= (ld s) { x /= s; y /= s; return self; }
|
xy& operator /= (ld s) { x /= s; y /= s; return self; }
|
||||||
|
bool operator == (xy b) { return x == b.x && y == b.y; }
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class stat { str, con, wis, dex };
|
enum class stat { str, con, wis, dex };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user