CameraSceneAction class

Created by

─▄▀─▄▀ ──▀──▀ █▀▀▀▀▀█▄ █░░░░░█─█ ▀▄▄▄▄▄▀▀

Rafaelbarbosatec on 04/03/22 SceneAction that move camera to specific position os to follow the Component in the game.

Inheritance

Constructors

CameraSceneAction({dynamic id, Vector2? position, GameComponent? target, double? zoom, double? angle, Curve curve = widget.Curves.decelerate, required Duration duration})
CameraSceneAction.position(Vector2? position, {dynamic id, Duration duration = const Duration(seconds: 1), double? zoom, double? angle, Curve curve = widget.Curves.decelerate})
CameraSceneAction.target(GameComponent? target, {dynamic id, Duration duration = const Duration(seconds: 1), double? zoom, double? angle, Curve curve = widget.Curves.decelerate})

Properties

angle double?
final
curve Curve
final
duration Duration
final
hashCode int
The hash code for this object.
no setterinherited
id → dynamic
finalinherited
position Vector2?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target GameComponent?
final
zoom double?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runAction(double dt, BonfireGameInterface game) bool
override
toString() String
A string representation of this object.
inherited

Operators

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