Class Circle
java.lang.Object
com.codingame.gameengine.module.entities.Entity<T>
com.codingame.gameengine.module.entities.BlendableEntity<T>
com.codingame.gameengine.module.entities.Shape<Circle>
com.codingame.gameengine.module.entities.Circle
- All Implemented Interfaces:
Mask
A Circle specifies an area in a the world defined by the Circle's center point (x,y) and its radius.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.codingame.gameengine.module.entities.BlendableEntity
BlendableEntity.BlendMode -
Method Summary
Methods inherited from class com.codingame.gameengine.module.entities.Shape
getFillAlpha, getFillColor, getLineAlpha, getLineColor, getLineWidth, setFillAlpha, setFillAlpha, setFillColor, setFillColor, setLineAlpha, setLineAlpha, setLineColor, setLineColor, setLineWidth, setLineWidthMethods inherited from class com.codingame.gameengine.module.entities.BlendableEntity
getBlendMode, setBlendModeMethods inherited from class com.codingame.gameengine.module.entities.Entity
getAlpha, getId, getMask, getParent, getRotation, getScaleX, getScaleY, getSkewX, getSkewY, getX, getY, getZIndex, isVisible, requireValidAlpha, requireValidColor, self, set, set, setAlpha, setAlpha, setMask, setMask, setRotation, setRotation, setScale, setScale, setScaleX, setScaleX, setScaleY, setScaleY, setSkewX, setSkewX, setSkewY, setSkewY, setVisible, setX, setX, setY, setY, setZIndex
-
Method Details
-
setRadius
Sets the radius of thisCirclein world units.Default is 100.
- Parameters:
radius- the radius for thisCircle.- Returns:
- this
Circle. - Throws:
IllegalArgumentException- if radius < 0
-
setRadius
Sets the radius of thisCirclein world units.Default is 100.
- Parameters:
radius- the radius for thisCircle.curve- the transition to animate between values of this property.- Returns:
- this
Circle. - Throws:
IllegalArgumentException- if radius < 0
-
getRadius
public int getRadius()Returns the radius of this
Circlein world units.Default is 100.
- Returns:
- the radius of this
Circle.
-