29 lines
638 B
Lua
29 lines
638 B
Lua
local FighterParent = require "scenes.battlesystem.controllers.fighters.parent"
|
|
local VillainFighter = FighterParent:extend()
|
|
|
|
local POSITIONS = {3, 1, 5}
|
|
local ENNEMY_LINE = 10;
|
|
|
|
function VillainFighter:new(owner, ennemy, id)
|
|
self.name = ennemy
|
|
self.super.new(self, owner, false, id)
|
|
end
|
|
|
|
function VillainFighter:getAbstract()
|
|
return game.ennemies:getEnnemyData(self.name)
|
|
end
|
|
|
|
function VillainFighter:createActor()
|
|
local x, y = ENNEMY_LINE, POSITIONS[self.id]
|
|
return self.world.obj.Ennemy(self.world, x, y, self)
|
|
end
|
|
|
|
function VillainFighter:startAction()
|
|
|
|
end
|
|
|
|
function VillainFighter:endAction()
|
|
|
|
end
|
|
|
|
return VillainFighter
|