# game_config.hpp

Go to the documentation of this file.

    00001 /* $Id$ */
    00002
    00003 /*
    00004  * This file is part of OpenTTD.
    00005  * OpenTTD 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, version 2.
    00006  * OpenTTD 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.
    00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
    00008  */
    00009
    00012 #ifndef GAME_CONFIG_HPP
    00013 #define GAME_CONFIG_HPP
    00014
    00015 #include "../script/script_config.hpp"
    00016
    00017 class GameConfig : public ScriptConfig {
    00018 public:
    00022   static GameConfig *GetConfig(ScriptSettingSource source = SSS_DEFAULT);
    00023
    00024   GameConfig() :
    00025     ScriptConfig()
    00026   {}
    00027
    00028   GameConfig(const GameConfig *config) :
    00029     ScriptConfig(config)
    00030   {}
    00031
    00032   class GameInfo *GetInfo() const;
    00033
    00042   bool ResetInfo(bool force_exact_match);
    00043
    00044 protected:
    00045   /* virtual */ ScriptInfo *FindInfo(const char *name, int version, bool force_exact_match);
    00046 };
    00047
    00048 #endif /* GAME_CONFIG_HPP */