DrawableObject class

Inheritance

Constructors

DrawableObject()

Properties

color int?
getter/setter pair
data TransformData
final
hashCode int
The hash code for this object.
no setterinherited
hasTextureRegion bool
no setter
image Image?
no setter
isReady bool
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scos double
no setter
ssin double
no setter
textureRegion TextureRegion?
getter/setter pair
tx double
no setter
ty double
no setter

Methods

addPosition(double x, double y) → void
addPositionFrom(Vector2 position) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
resetTexture() → void
setData({required TextureRegion textureRegion, double rotation = 0.0, double scale = 1.0, int? color, double opacity = 1.0}) → void
setDataRegion(TextureRegion textureRegion, {double tx = 0, double ty = 0}) → void
setTransformData({double rotation = 0.0, double scale = 1.0, double anchorX = 0.0, double anchorY = 0.0}) → void
toString() String
A string representation of this object.
override
visibleAtPosition(Vector2 screenLocation) bool
override

Operators

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