fix: remove dead code

This commit is contained in:
Kazhnuz 2020-09-13 10:09:07 +02:00
parent a8ae9ca5ba
commit 3c0a5f2c35
2 changed files with 0 additions and 40 deletions

View file

@ -1 +0,0 @@
self.scene.menu:set( self )

View file

@ -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