@@ -56,7 +56,14 @@ public abstract class DrawEngine {
Shape shape = new Rectangle2D.Double(0, 0, Images.getImage(image).getWidth(null),Images.getImage(image).getHeight(null));
return this.getAffineTransform().createTransformedShape(shape).contains(point);
}
-
+
+ public boolean containsWalkArea(Point2D point){
+ if(this.walkArea == null){
+ return false;
+ }
+ return this.getAffineTransform().createTransformedShape(this.walkArea).contains(point);
public Image getImage(){
return Images.getImage(image);