23 lines
534 B
Lua
23 lines
534 B
Lua
|
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
|