diff options
author | Aki <nthirtyone@gmail.com> | 2018-04-09 03:14:51 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2018-04-09 03:14:51 +0200 |
commit | 0baba0172f916a70042a5ddadf2a30957afa33d4 (patch) | |
tree | ab1a4e17f59d7a73611b0bb44709f807fbbe9c12 /not | |
parent | 4e2ad54590449037e4c35e26b285638029c8282d (diff) | |
download | roflnauts-0baba0172f916a70042a5ddadf2a30957afa33d4.zip roflnauts-0baba0172f916a70042a5ddadf2a30957afa33d4.tar.gz roflnauts-0baba0172f916a70042a5ddadf2a30957afa33d4.tar.bz2 |
Clean-ups for Player
Diffstat (limited to 'not')
-rw-r--r-- | not/Player.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/not/Player.lua b/not/Player.lua index b33e229..1cf6018 100644 --- a/not/Player.lua +++ b/not/Player.lua @@ -1,13 +1,11 @@ -require "not.Hero" - --- `Player` --- Special `not.Hero` controllable by a player. --- TODO: move functions and properties related to controls from `not.Hero`. -Player = Hero:extends() +-- Right now this is more or less wrapper for Hero and various methods related to players' input. +-- TODO: Few more things should be exchanged between Player and Hero. +-- TODO: In the end this class could be implemented in form of more verbose and functional Controller class. Think about it. +Player = require "not.Hero":extends() Player.controllerSet =--[[Controller.sets.*]]nil --- Constructor of `Player`. function Player:new (name, x, y, world) Player.__super.new(self, name, x, y, world) end @@ -16,6 +14,7 @@ end function Player:assignControllerSet (set) self.controllerSet = set end + function Player:getControllerSet () return self.controllerSet end |