PositionMixin mixin

Superclass Constraints

Properties

x double
read / write
y double
read / write
angle double
read / write
width double
read / write
height double
read / write
anchor Anchor
read / write
renderFlipX bool
read / write
renderFlipY bool
read / write
debugMode bool
read / write
debugColor Color
read-only
debugTextConfig TextConfig
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toPosition() Position
setByPosition(Position position) → void
toSize() Position
setBySize(Position size) → void
render(Canvas canvas) → void
Renders this component on the provided Canvas c.
override
toRect() Rect
setByRect(Rect rect) → void
angleBetween(PositionComponent c) double
distance(PositionComponent c) double
renderDebugMode(Canvas canvas) → void
prepareCanvas(Canvas canvas) → void
update(double t) → void
This method is called periodically by the game engine to request that your component updates itself. [...]
inherited
resize(Size size) → void
This is a hook called by BaseGame to let this component know that the screen (or flame draw area) has been update. [...]
inherited
loaded() bool
Whether this component has been loaded yet. If not loaded, BaseGame will not try to render it. [...]
inherited
destroy() bool
Whether this should be destroyed or not. [...]
inherited
isHud() bool
Whether this component is HUD object or not. [...]
inherited
priority() int
Render priority of this component. This allows you to control the order in which your components are rendered. [...]
inherited
onMount() → void
Called when the component has been added and preperad by the game instance. [...]
inherited
onDestroy() → void
Called right before the component is destroyed and removed from the game
inherited
toString() String
A string representation of this object. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

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