diff options
Diffstat (limited to 'not')
-rw-r--r-- | not/Player.lua | 22 |
1 files changed, 22 insertions, 0 deletions
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 |