simpleAttackMelee method
void
simpleAttackMelee({})
Implementation
void simpleAttackMelee({
/// use animation facing right.
required Future<SpriteAnimation> animation,
required double damage,
required Vector2 size,
dynamic id,
double? radAngleDirection,
bool withPush = true,
double marginFromCenter = 16,
Vector2? centerOffset,
}) {
double? angle = radAngleDirection ?? this.angle;
simpleAttackMeleeByAngle(
angle: angle,
animation: animation,
damage: damage,
id: id,
size: size,
withPush: withPush,
marginFromCenter: marginFromCenter,
centerOffset: centerOffset,
attackFrom: AttackOriginEnum.PLAYER_OR_ALLY,
);
}