Refactoring ClearButton. Made by drawing CircleHitbox. Need to finish doing HitboxCircleRenderingFunction and saving hitboxCircle when you put the second point
This commit is contained in:
@ -12,6 +12,7 @@ import events.EntityDrawboxChangedEvent;
|
||||
import events.EntityDrawboxChangedListener;
|
||||
import model.Drawbox;
|
||||
import model.Entity;
|
||||
import model.HitboxRectangle;
|
||||
import model.Point;
|
||||
|
||||
public class DrawboxRectengleRenderingFunction implements ShapeRenderingFunction {
|
||||
@ -145,5 +146,10 @@ public class DrawboxRectengleRenderingFunction implements ShapeRenderingFunction
|
||||
public void setEntityInDrawboxRectengle(Entity e) {
|
||||
entity = e;
|
||||
}
|
||||
|
||||
public void functionClearJButton() {
|
||||
if(entity != null) {
|
||||
entity.getDrawbox().getDrawboxlistPoints().clear();
|
||||
entity.getDrawbox().getbaseListPoints().clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user