]> git.localhorst.tv Git - blank.git/blobdiff - src/runtime.hpp
get world seed from command line arguments
[blank.git] / src / runtime.hpp
diff --git a/src/runtime.hpp b/src/runtime.hpp
new file mode 100644 (file)
index 0000000..01f6cdd
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef BLANK_RUNTIME_HPP_
+#define BLANK_RUNTIME_HPP_
+
+#include <cstddef>
+
+
+namespace blank {
+
+class Runtime {
+
+public:
+       enum Mode {
+               NORMAL,
+               FRAME_LIMIT,
+               TIME_LIMIT,
+               FIXED_FRAME_LIMIT,
+               ERROR,
+       };
+
+       Runtime();
+
+       void ReadArgs(int argc, const char *const *argv);
+
+       int Execute();
+
+private:
+       const char *name;
+       Mode mode;
+       std::size_t n;
+       std::size_t t;
+       unsigned int seed;
+
+};
+
+}
+
+#endif