BSeeAndMoveToTarget class

Inheritance

Constructors

BSeeAndMoveToTarget.new({required GameComponent target, required void onClose(double dt, GameComponent target), double radiusVision = 32, MovementAxis movementAxis = MovementAxis.all, double? visionAngle, Behavior? doElseBehavior, double distance = 5, dynamic id})

Properties

distance double
final
doElseBehavior Behavior?
final
hashCode int
The hash code for this object.
no setterinherited
id → dynamic
finalinherited
movementAxis MovementAxis
final
onClose → void Function(double dt, GameComponent target)
final
radiusVision double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target GameComponent
final
visionAngle double?
final

Methods

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

Operators

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