X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FArguments.h;h=524d3b6e394ed15c85ec2406ebd49f79af0e1a0b;hb=ef2496b3cb7ce66b7f831278be66261834b732e5;hp=9bd35a93ad540c5a13c9ef95601ea6ed70969199;hpb=d557b3422756e3492b60cf545fd956a2fbf18af1;p=l2e.git diff --git a/src/app/Arguments.h b/src/app/Arguments.h index 9bd35a9..524d3b6 100644 --- a/src/app/Arguments.h +++ b/src/app/Arguments.h @@ -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 &Infiles() const { return infiles; } @@ -38,7 +38,7 @@ public: private: std::vector infiles; const char *outfile; - bool dump; + RunLevel runlevel; };