29 lines
597 B
Lua
29 lines
597 B
Lua
|
local PlayerController = Object:extend()
|
||
|
|
||
|
function PlayerController:new(owner)
|
||
|
self.owner = owner
|
||
|
self.activeActor = nil;
|
||
|
self.startData = {}
|
||
|
end
|
||
|
|
||
|
function PlayerController:setActive(activeActor)
|
||
|
self.activeActor = activeActor
|
||
|
activeActor:setActive()
|
||
|
end
|
||
|
|
||
|
function PlayerController:update(dt)
|
||
|
|
||
|
end
|
||
|
|
||
|
function PlayerController:setStartData(x, y, direction)
|
||
|
self.startData.x = x
|
||
|
self.startData.y = y
|
||
|
self.startData.direction = direction
|
||
|
end
|
||
|
|
||
|
function PlayerController:getStartData()
|
||
|
return self.startData.x, self.startData.y, self.startData.direction
|
||
|
end
|
||
|
|
||
|
return PlayerController
|