/* Application controller for the proteus game. Copyright (C) 2010 Alex Brandt This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef PROTEUS_H #define PROTEUS_H #include #include #include "../include/baseerror.h" #include "../include/baseargumenterror.h" class ProteusGame; class Proteus { public: /** * @brief Constructor. * @param argc Count of the arguments. * @param argv The arguments vector. */ Proteus(int argc, char *argv[]); /** * @brief Run Application. */ void Run(); private: bool debug; bool verbose; bool fullscreen; ProteusGame * game; /** * @brief Parse the command line options. * @param argc The count of the arguments. * @param argv The argument vector. * @param description The options description pointer. * @return A variables map containing all of the variables parsed. */ boost::program_options::variables_map parseOptions(int argc, char *argv[], boost::program_options::options_description * description = new boost::program_options::options_description("Options: ")); }; class ProteusError : public Errors::BaseError { public: ProteusError(const std::string & msg); }; class ProteusArgumentError : public Errors::BaseArgumentError { public: ProteusArgumentError(const std::string & msg, const boost::program_options::options_description & description); }; #endif // PROTEUS_H