]> git.localhorst.tv Git - l2e.git/blobdiff - src/app/Arguments.h
removed useless comments
[l2e.git] / src / app / Arguments.h
index 9bd35a93ad540c5a13c9ef95601ea6ed70969199..ee7654fae3656060344eb5dd46c71c4513ebe1d1 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * Arguments.h
- *
- *  Created on: Sep 15, 2012
- *      Author: holy
- */
-
 #ifndef APP_ARGUMENTS_H_
 #define APP_ARGUMENTS_H_
 
@@ -12,6 +5,8 @@
 
 namespace app {
 
+/// Specialized argument interpreter.
+/// Reads command line arguments via Read(int, char**) function.
 class Arguments {
 
 public:
@@ -20,15 +15,20 @@ 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; }
 
@@ -38,10 +38,10 @@ public:
 private:
        std::vector<char *> infiles;
        const char *outfile;
-       bool dump;
+       RunLevel runlevel;
 
 };
 
 }
 
-#endif /* APP_ARGUMENTS_H_ */
+#endif