RotationEnemyExtensions extension
Methods
-
seeAndMoveToAttackRange(
{required dynamic positioned(Player), double radiusVision = 32, double? minDistanceCellsFromPlayer, bool runOnlyVisibleInScreen = true}) → void -
Available on RotationEnemy, provided by the RotationEnemyExtensions extension
Checks whether the player is within range. If so, move to it. -
seeAndMoveToPlayer(
{required dynamic closePlayer(Player), double radiusVision = 32, double margin = 10, bool runOnlyVisibleInScreen = true}) → void -
Available on RotationEnemy, provided by the RotationEnemyExtensions extension
Checks whether the player is within range. If so, move to it. -
simpleAttackMelee(
{required Future< SpriteAnimation> attackEffectTopAnim, required double damage, required double height, required double width, int? id, bool withPush = false, double? radAngleDirection, VoidCallback? execute, int interval = 1000}) → void -
Available on RotationEnemy, provided by the RotationEnemyExtensions extension
Execute simple attack melee using animation -
simpleAttackRange(
{required Future< SpriteAnimation> animationUp, required Future<SpriteAnimation> animationDestroy, required double width, required double height, double? radAngleDirection, int? id, double speed = 150, double damage = 1, int interval = 1000, bool withCollision = true, VoidCallback? onDestroy, CollisionConfig? collision, VoidCallback? onExecute, LightingConfig? lightingConfig}) → void -
Available on RotationEnemy, provided by the RotationEnemyExtensions extension
Execute the ranged attack using a component with animation