diff interps/sadol/Console.hpp @ 996:859f9b4339e6

<Gregor> tar xf egobot.tar.xz
author HackBot
date Sun, 09 Dec 2012 19:30:08 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/interps/sadol/Console.hpp	Sun Dec 09 19:30:08 2012 +0000
@@ -0,0 +1,32 @@
+/*
+ * BDSM2
+ * Author: Adam Sawicki
+ * http://www.regedit.risp.pl
+ * mailto:regedit@risp.pl
+ */
+#ifndef CONSOLE_H_
+#define CONSOLE_H_
+
+class Console
+{
+private:
+	char m_Buffer[65536];
+
+public:
+	// one raw character from input
+	char InChar();
+	// one line from input
+	void InString(string *s);
+	// one line from input
+	int InInteger();
+	// one line from input
+	double InDouble();
+
+	void OutInteger(int x);
+	void OutDouble(double x);
+	void OutString(const string &s);
+};
+
+extern Console g_Console;
+
+#endif