From 5add341a14b185d8d98806b4b547e4db8a5e89e0 Mon Sep 17 00:00:00 2001 From: Tim Anema Date: Sun, 26 Oct 2014 15:27:35 -0400 Subject: [PATCH] minimized body methods --- lib/light.lua | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/lib/light.lua b/lib/light.lua index 2afe867..f5db6c8 100644 --- a/lib/light.lua +++ b/lib/light.lua @@ -46,27 +46,8 @@ function light:setPosition(x, y, z) end -- get x -function light:getX() - return self.x -end - --- get y -function light:getY() - return self.y -end - --- set x -function light:setX(x) - if x ~= self.x then - self.x = x - end -end - --- set y -function light:setY(y) - if y ~= self.y then - self.y = y - end +function light:getPosition() + return self.x, self.y end -- set color