summaryrefslogtreecommitdiffhomepage
path: root/not/Player.lua
blob: bcd72bcb6bcd0d6dde972aa2dbc9d49ce6b96a36 (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

-- Initializator of `Player`.
function Player:init (...)
	Hero.init(self, ...)
end