CircularEntity class abstract
Circular sprite presentation.
- Inheritance
-
- Object
- GameEntity
- CircularEntity
Constructors
- CircularEntity(Vector position, double radius, {ImageRenderer? image, Color? color})
- Creates a new circle entity.
Properties
- color ↔ Color?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- image ↔ ImageRenderer?
-
getter/setter pairinherited
- position ↔ Vector
-
getter/setter pairinherited
- radius ↔ double
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size ↔ Size
-
getter/setter pairinherited
- velocity ↔ Vector
-
getter/setter pairinherited
- x ↔ double
-
getter/setter pairinherited
- y ↔ double
-
getter/setter pairinherited
Methods
-
contains(
Offset position) → bool -
Checks if
position
is in the render element.override -
handleGesture(
Offset position, Gesture gesture) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
Canvas canvas) → void -
Renders the game entity.
override
-
reset(
) → void -
Resets the state.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
double dt) → void -
Updates the game entity at each frame.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited