From bce14a76de26ec15ce0227174f0c49f659fd64b9 Mon Sep 17 00:00:00 2001 From: Nick Overdijk Date: Sun, 29 Apr 2012 20:57:40 +0200 Subject: [PATCH] Adds __tostring to turtle --- ninja_turtle | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ninja_turtle b/ninja_turtle index bae24ae..62a03ab 100644 --- a/ninja_turtle +++ b/ninja_turtle @@ -3,13 +3,16 @@ ninja_turtle = { current_position = {0, 0, 0}, rotation = 0, --- __tostring = function (x) for i,v in pairs(x) do print(i, v) end + __tostring = function (x) for i,v in pairs(x) do print(i, v) end } - function ninja_turtle:new() o = o or {} setmetatable(o, self) self.___index = self return o end + +-- acquire a path through the path API +function ninja_turtle:walk(path) +end