aboutsummaryrefslogtreecommitdiff
path: root/world.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-02 21:23:39 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-02 21:23:39 +0100
commitfb0cdfe743869f6592090e441a071f0904a80634 (patch)
tree60a6caee28ab702efb2a3e72b6cf5644ca1949c1 /world.h
parent39dbc1934d506f4b1da32621a8ff7e2e165a0bb0 (diff)
Optimize terminal usage
The ^C-catching stuff will not work on windows; need to look into that
Diffstat (limited to 'world.h')
-rw-r--r--world.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/world.h b/world.h
index e964e8d..caaa4f0 100644
--- a/world.h
+++ b/world.h
@@ -6,6 +6,7 @@
#include <vector>
#include <cstdint>
#include "params.h"
+#include "screenbuffer.h"
using namespace std;
@@ -100,7 +101,8 @@ public:
void tick();
Robot* targetbot(const Robot *r);
- void print() const;
+ void print(ostream &os) const;
+ void print(ScreenBuffer &sb) const;
};