new helper methods

improved elememt-selection
changed some parameters
show length for selected obstacles/doors
minor fixes
This commit is contained in:
2017-01-05 09:41:47 +01:00
parent 535e410ae9
commit 2297a76c53
17 changed files with 160 additions and 56 deletions

View File

@@ -29,8 +29,8 @@ public:
}
/** get the element's minimal distance (nearest whatsoever) to the given point */
float getMinDistanceXY(const Point2 p) const override {
return p.getDistance(b->pos.xy());
ClickDist getMinDistanceXY(const Point2 p) const override {
return ClickDist(p.getDistance(b->pos.xy()), ClickDistType::DIRECT);
}
/** repaint me */