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