]> git.localhorst.tv Git - l2e.git/blobdiff - src/app/Arguments.h
better handling of nested state changes
[l2e.git] / src / app / Arguments.h
index c7e37eee1419209d95cb2db9453982376de71c09..7c51b7fb612eaee9d0e44abbe2bbe819c05b191a 100644 (file)
@@ -18,9 +18,23 @@ public:
        Arguments();
        ~Arguments() { }
 
+public:
+       enum RunLevel {
+               DUMP,
+               PLAY,
+               WRITE,
+
+               // temporary modes
+               BATTLE,
+               MAP,
+               SOURCE_WIKI,
+       };
+
 public:
        void Read(int argc, char **argv);
 
+       RunLevel GetRunLevel() const { return runlevel; }
+
        const std::vector<char *> &Infiles() const { return infiles; }
 
        bool OutfileSet() const { return outfile; }
@@ -29,6 +43,7 @@ public:
 private:
        std::vector<char *> infiles;
        const char *outfile;
+       RunLevel runlevel;
 
 };