tron@2186: /* $Id$ */ tron@2186: rubidium@10225: /** @file cheat_type.h Types related to cheating. */ truelight@0: rubidium@10225: #ifndef CHEAT_TYPE_H rubidium@10225: #define CHEAT_TYPE_H truelight@0: rubidium@10225: /** rubidium@10225: * Info about each of the cheats. rubidium@10225: */ rubidium@6574: struct Cheat { rubidium@10225: bool been_used; ///< has this cheat been used before? rubidium@10225: bool value; ///< tells if the bool cheat is active or not rubidium@6574: }; truelight@0: rubidium@10225: /** rubidium@10225: * WARNING! Do _not_ remove entries in Cheats struct or change the order belugas@6919: * of the existing ones! Would break downward compatibility. rubidium@10225: * Only add new entries at the end of the struct! rubidium@10225: */ rubidium@6574: struct Cheats { rubidium@10225: Cheat magic_bulldozer; ///< dynamite industries, unmovables rubidium@10225: Cheat switch_player; ///< change to another player rubidium@10225: Cheat money; ///< get rich or poor rubidium@10225: Cheat crossing_tunnels; ///< allow tunnels that cross each other rubidium@10225: Cheat build_in_pause; ///< build while in pause mode rubidium@10225: Cheat no_jetcrash; ///< no jet will crash on small airports anymore rubidium@10225: Cheat switch_climate; ///< change the climate of the map rubidium@10225: Cheat change_date; ///< changes date ingame rubidium@10225: Cheat setup_prod; ///< setup raw-material production in game rubidium@10225: Cheat dummy; ///< empty cheat (enable running el-engines on normal rail) rubidium@6574: }; truelight@0: rubidium@10225: extern Cheats _cheats; truelight@0: rubidium@10225: #endif /* CHEAT_TYPE_H */