|
|
@ -190,7 +190,7 @@ public:
|
|
|
|
return (pos.x >= x-minXRange && pos.x <= x+maxXRange && pos.y >= y-minYRange && pos.y <= y+maxYRange && pos.z == z);
|
|
|
|
return (pos.x >= x-minXRange && pos.x <= x+maxXRange && pos.y >= y-minYRange && pos.y <= y+maxYRange && pos.z == z);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// operator less than for std::map
|
|
|
|
// operator less than for std::map
|
|
|
|
bool operator<(const Position& other) const { return x < other.x && y < other.y && z < other.z; }
|
|
|
|
bool operator<(const Position& other) const { return x < other.x || y < other.y || z < other.z; }
|
|
|
|
|
|
|
|
|
|
|
|
bool up(int n = 1) {
|
|
|
|
bool up(int n = 1) {
|
|
|
|
int nz = z-n;
|
|
|
|
int nz = z-n;
|
|
|
|