summaryrefslogtreecommitdiffhomepage
path: root/not
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2018-04-09 03:14:51 +0200
committerAki <nthirtyone@gmail.com>2018-04-09 03:14:51 +0200
commit0baba0172f916a70042a5ddadf2a30957afa33d4 (patch)
treeab1a4e17f59d7a73611b0bb44709f807fbbe9c12 /not
parent4e2ad54590449037e4c35e26b285638029c8282d (diff)
downloadroflnauts-0baba0172f916a70042a5ddadf2a30957afa33d4.zip
roflnauts-0baba0172f916a70042a5ddadf2a30957afa33d4.tar.gz
roflnauts-0baba0172f916a70042a5ddadf2a30957afa33d4.tar.bz2
Clean-ups for Player
Diffstat (limited to 'not')
-rw-r--r--not/Player.lua11
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