namespace app {
+/// Specialized argument interpreter.
+/// Reads command line arguments via Read(int, char**) function.
class Arguments {
public:
public:
enum RunLevel {
- COMPILE,
DUMP,
PLAY,
+ WRITE,
+
+ // temporary modes
+ BATTLE,
+ MAP,
+ SOURCE_WIKI,
};
public:
void Read(int argc, char **argv);
- RunLevel DetectRunLevel() const;
+ RunLevel GetRunLevel() const { return runlevel; }
const std::vector<char *> &Infiles() const { return infiles; }
private:
std::vector<char *> infiles;
const char *outfile;
- bool dump;
+ RunLevel runlevel;
};