sonic-radiance/sonic-radiance.love/scenes/battlesystem/controllers/player.lua

23 lines
534 B
Lua
Raw Permalink Normal View History

2020-06-05 10:02:04 +02:00
local Player = Object:extend()
function Player:init()
self.activeActor = nil
self.currentScreen = ""
end
function Player:beginTurn(activeActor)
self.activeActor = activeActor
self.startx, self.starty = self.activeActor.x, self.activeActor.y
self.currentScreen = MoveScreen(self)
core.debug:print("cbs/hero", "hero " .. self.activeActor.charid .. " is now active")
self.characterData = game.characters.list[self.activeActor.charid]
self:initializeCursor()
end
function Player:initializeCursor()
end
return Player