SpriteComponent class

Inheritance
Mixed in types
Implementers

Constructors

SpriteComponent(TextureRegion textureRegion, {RenderComponent? render, double rotation = 0.0, double scale = 1.0, double opacity = 1.0})

Properties

componentName String?
Unique name for the search
getter/setter pairinherited
drawable DrawableObject
final
hashCode int
The hash code for this object.
no setterinherited
opacity double
getter/setter pairinherited
parameters Parameters
no setterinherited
phase int
getter/setter pairinherited
rotation double
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
getter/setter pairinherited
spriteDirty bool
getter/setter pairinherited
spriteNotDirty bool
no setterinherited
systems SystemRegistry
no setterinherited
textureRegion TextureRegion
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
override
resetBody() → void
inherited
setBody({required double rotation, required double scale, required double opacity}) → void
inherited
setPhase(ComponentPhases value) → void
inherited
setRenderComponent(RenderComponent component) → void
spawn(BaseObject parent) → void
override
toString() String
A string representation of this object.
override
update(double deltaTime, BaseObject parent) → void
override

Operators

operator ==(Object other) bool
The equality operator.
inherited