Package com.prineside.tdi2.shapes
Class Circle
java.lang.Object
com.prineside.tdi2.Shape
com.prineside.tdi2.shapes.Circle
- All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Shape
Shape.Factory<T extends Shape> -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(com.badlogic.gdx.graphics.g2d.Batch batch) voidfree()floatfloatfloatgetX()floatgetY()voidreset()Resets the object for reuse.voidsetColor(float innerColor, float outerColor) voidsetPosition(float x, float y) voidsetPositionAndColor(float x, float y, float innerColor, float outerColor) voidsetup(float x, float y, float innerRadius, float outerRadius, int segmentCount, float innerColor, float outerColor)
-
Method Details
-
getX
public float getX() -
getY
public float getY() -
getInnerColor
public float getInnerColor() -
getOuterColor
public float getOuterColor() -
setup
public void setup(float x, float y, float innerRadius, float outerRadius, int segmentCount, float innerColor, float outerColor) -
setPosition
public void setPosition(float x, float y) -
setPositionAndColor
public void setPositionAndColor(float x, float y, float innerColor, float outerColor) -
setColor
public void setColor(float innerColor, float outerColor) -
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch) -
reset
public void reset()Description copied from interface:com.badlogic.gdx.utils.Pool.PoolableResets the object for reuse. Object references should be nulled and fields may be set to default values. -
free
public void free()
-