From 3c0a5f2c35ccbba6a7b196a33d7cf75a431b5958 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 13 Sep 2020 10:09:07 +0200 Subject: [PATCH] fix: remove dead code --- .../battlesystem/controllers/view/menu.lua | 1 - .../battlesystem/controllers/view/moving.lua | 39 ------------------- 2 files changed, 40 deletions(-) delete mode 100644 sonic-radiance.love/scenes/battlesystem/controllers/view/menu.lua delete mode 100644 sonic-radiance.love/scenes/battlesystem/controllers/view/moving.lua diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/view/menu.lua b/sonic-radiance.love/scenes/battlesystem/controllers/view/menu.lua deleted file mode 100644 index 186b759..0000000 --- a/sonic-radiance.love/scenes/battlesystem/controllers/view/menu.lua +++ /dev/null @@ -1 +0,0 @@ -self.scene.menu:set( self ) diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/view/moving.lua b/sonic-radiance.love/scenes/battlesystem/controllers/view/moving.lua deleted file mode 100644 index 2a27569..0000000 --- a/sonic-radiance.love/scenes/battlesystem/controllers/view/moving.lua +++ /dev/null @@ -1,39 +0,0 @@ -local MovingView = Object:extend() - -local DEFAULT_GRIDSIZE = 2 - -function MovingView:new(owner, actor) - self.owner = owner - self.actor = actor - self.world = actor.world -end - -function MovingView:update(dt) - -end - -function MovingVew:start() - local character = self.actor:getCharacterData(); - local gridsize = character.move - if (gridsize == nil) then - gridsize = DEFAULT_GRIDSIZE - core.debug:warning("cbs/character", "move value is nil") - end - local x, y = utils.math.round(self.actor.x), utils.math.round(self.actor.y) - self.world.cursor:setGrid(x, y, "circle", gridsize, 1, self.owner) - self.actor.x, self.actor.y = x, y - self.owner:setStartData(x, y, self.actor.direction) - - self.world.cursor:set(x, y, "cursorMove") -end - -function MovingView:receiveSignal(signal, id) - if (signal == "positionSelected") then - self.actor:set - elseif (signal == "characterMoved") then - self.world:resetActiveGrid() - self:endView() - end -end - -return MovingView