public override void apply(BattleEntity self, BattleEntity target, Direction dir, BattleArena arena) { Position newPos = new Position(target.CurrentPos.X + PositionUtils.GetDirPosition(dir).X * Dist, target.CurrentPos.Y + PositionUtils.GetDirPosition(dir).Y * Dist); newPos.NormalizePos(arena.ArenaSize); arena.MoveBattleEntity(target, newPos); }
public override void apply(BattleEntity self, Position target, Direction dir, BattleArena arena) { arena.MoveBattleEntity(self, target); }