From a8551f5da9549453381a0f2daa0ff4aefd06272f Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 19 Mar 2017 02:50:40 +0100 Subject: Added tempalte for not.Player --- not/Player.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 not/Player.lua (limited to 'not/Player.lua') diff --git a/not/Player.lua b/not/Player.lua new file mode 100644 index 0000000..bcd72bc --- /dev/null +++ b/not/Player.lua @@ -0,0 +1,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 \ No newline at end of file -- cgit v1.1