2021-08-15 16:34:36 +02:00
|
|
|
local StepParent = require "scenes.battlesystem.choregraphy.step.parent"
|
2020-07-25 10:24:32 +02:00
|
|
|
local JumpBackStep = StepParent:extend()
|
|
|
|
|
|
|
|
function JumpBackStep:new(controller, args)
|
2021-07-17 10:15:24 +02:00
|
|
|
JumpBackStep.super.new(self, controller, args, true)
|
2020-07-25 10:24:32 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function JumpBackStep:start()
|
2021-08-07 13:36:13 +02:00
|
|
|
local actor = self:getActor(self.arguments.who)
|
2020-07-25 10:24:32 +02:00
|
|
|
|
2021-08-07 13:36:13 +02:00
|
|
|
actor:jumpBack(self.arguments.height, self.arguments.speed)
|
2020-07-25 10:24:32 +02:00
|
|
|
|
2021-08-07 13:36:13 +02:00
|
|
|
actor:addTaggedAction(self.tag, self.choregraphy, "jump")
|
2020-07-25 10:24:32 +02:00
|
|
|
if (self.arguments.blockProcess == false) then
|
|
|
|
self:finish()
|
|
|
|
else
|
2021-08-07 13:36:13 +02:00
|
|
|
actor:blockChoregraphy(self.arguments.blockProcess, self, "jump")
|
2020-07-25 10:24:32 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function JumpBackStep:update(dt)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function JumpBackStep:getSignal(signal)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
return JumpBackStep;
|