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:
@ -32,7 +32,7 @@ public class HitboxRectengleRenderingFunction implements ShapeRenderingFunction
|
||||
return LocalListPointsCartesian;
|
||||
}
|
||||
|
||||
public void setFirstIsoPointIsNull(){
|
||||
private void setFirstIsoPointIsNull(){
|
||||
firstIsoPoint = null;
|
||||
}
|
||||
|
||||
@ -112,7 +112,7 @@ public class HitboxRectengleRenderingFunction implements ShapeRenderingFunction
|
||||
}
|
||||
}
|
||||
|
||||
public void setEntityInHtiboxRectengle(Entity e) {
|
||||
public void setEntityInHitboxRectengle(Entity e) {
|
||||
entity = e;
|
||||
}
|
||||
|
||||
@ -151,5 +151,15 @@ public class HitboxRectengleRenderingFunction implements ShapeRenderingFunction
|
||||
Hitbox.cartesianToIsometric(cartesianPoint.x,cartesianPoint.y,LocalListPointsIso.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void functionClearJButton() {
|
||||
HitboxRectangle nowHitbox = (HitboxRectangle)entity.getHitbox();
|
||||
nowHitbox.getListPointsIso().clear();
|
||||
nowHitbox.getListPointsCartesian().clear();
|
||||
LocalListPointsCartesian.clear();
|
||||
LocalListPointsIso.clear();
|
||||
setFirstIsoPointIsNull();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user