X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FArguments.h;h=ace8cda2e77e9764fcba61816c6d215758e606d6;hb=3f8fac16c7ae2cbe7da47b98aba9b558825723e7;hp=c7e37eee1419209d95cb2db9453982376de71c09;hpb=7830acc2ab78d0c82a72948c4eb87eeb6463693c;p=l2e.git diff --git a/src/app/Arguments.h b/src/app/Arguments.h index c7e37ee..ace8cda 100644 --- a/src/app/Arguments.h +++ b/src/app/Arguments.h @@ -12,15 +12,31 @@ namespace app { +/// Specialized argument interpreter. +/// Reads command line arguments via Read(int, char**) function. class Arguments { 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 &Infiles() const { return infiles; } bool OutfileSet() const { return outfile; } @@ -29,6 +45,7 @@ public: private: std::vector infiles; const char *outfile; + RunLevel runlevel; };