]> git.localhorst.tv Git - l2e.git/blobdiff - src/app/Arguments.h
store an application handle in each state
[l2e.git] / src / app / Arguments.h
index 1a81649a12dd01277d34ce3a98e67148e69f0671..ace8cda2e77e9764fcba61816c6d215758e606d6 100644 (file)
@@ -12,6 +12,8 @@
 
 namespace app {
 
+/// Specialized argument interpreter.
+/// Reads command line arguments via Read(int, char**) function.
 class Arguments {
 
 public:
@@ -23,12 +25,17 @@ 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; }
 
@@ -38,7 +45,7 @@ public:
 private:
        std::vector<char *> infiles;
        const char *outfile;
-       bool dump;
+       RunLevel runlevel;
 
 };