From 979ebb8ad03c2fdd7f6fbdcfedd88237ee19e6d4 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 3 Apr 2021 18:30:41 +0200 Subject: [PATCH] Add Region.getMinBuildAreaPoint Add Region.getMaxBuildAreaPoint --- .../src/de/steamwar/bausystem/world/Region.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java b/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java index a256e53..2b1265c 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java @@ -166,6 +166,14 @@ public class Region { return prototype.getMaxPoint(this); } + public Point getMinBuildAreaPoint() { + return prototype.buildArea.getMinPoint(this); + } + + public Point getMaxBuildAreaPoint() { + return prototype.buildArea.getMaxPoint(this); + } + public boolean inRegion(Location l) { return prototype.inRegion(this, l); }