-/*
- * Arguments.h
- *
- * Created on: Sep 15, 2012
- * Author: holy
- */
-
#ifndef APP_ARGUMENTS_H_
#define APP_ARGUMENTS_H_
namespace app {
+/// Specialized argument interpreter.
+/// Reads command line arguments via Read(int, char**) function.
class Arguments {
public:
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;
};
}
-#endif /* APP_ARGUMENTS_H_ */
+#endif