bonus code cleanup
This commit is contained in:
@@ -12,6 +12,8 @@ package engine.objects;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.math.Bounds;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.geom.Area;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
@@ -45,5 +47,10 @@ public class MeshBounds {
|
||||
Bounds.meshBoundsCache = DbManager.BuildingQueries.LOAD_MESH_BOUNDS();
|
||||
}
|
||||
|
||||
|
||||
public Area getArea(){
|
||||
Polygon area = new Polygon();
|
||||
area.addPoint((int) this.minX, (int) this.minZ);
|
||||
area.addPoint((int) this.maxX, (int) this.maxZ);
|
||||
return new Area(area);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user