Permalink
Browse files

Adds __tostring to turtle

  • Loading branch information...
1 parent 125e353 commit bce14a76de26ec15ce0227174f0c49f659fd64b9 @NickNick NickNick committed Apr 29, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 ninja_turtle
View
@@ -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

0 comments on commit bce14a7

Please sign in to comment.