blob: fd1613cb50bb26d275deab10655a83e40bbd3557 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- `Player`
-- Special `not.Hero` controllable by a player.
Player = {
-- TODO: move functions and properties related to controls from `not.Hero`.
}
-- `Player` is a child of `Hero`.
require "not.Hero"
Player.__index = Player
setmetatable(Player, Hero)
-- Constructor of `Player`.
function Player:new (...)
local o = setmetatable({}, self)
o:init(...)
return o
end
-- Initializer of `Player`.
function Player:init (...)
Hero.init(self, ...)
end
|