diff options
-rw-r--r-- | world.cpp | 11 | ||||
-rw-r--r-- | world.h | 1 |
2 files changed, 0 insertions, 12 deletions
@@ -317,17 +317,6 @@ Robot* World::targetbot(const Robot *r){ return *targetbotptr(r); } -void World::print(ostream &os) const { - for(int y=0;y<SIZE;y++){ - for(int x=0;x<SIZE;x++){ - if(board[y][x]==nullptr)os<<".."; - else os<<string(2,"^>v<"[board[y][x]->heading%4]); - os<<' '; - } - os<<endl; - } -} - void World::print(ScreenBuffer &sb) const { for(int y=0;y<SIZE;y++){ sb.moveto(0,y); @@ -101,7 +101,6 @@ public: void tick(); Robot* targetbot(const Robot *r); - void print(ostream &os) const; void print(ScreenBuffer &sb) const; }; |