src/cheat_type.h
changeset 8965 29a591456a2f
parent 8275 f17d0c863ee3
child 10207 c291a21b304e
equal deleted inserted replaced
8964:84f2e443b7be 8965:29a591456a2f
       
     1 /* $Id$ */
       
     2 
       
     3 /** @file cheat_type.h Types related to cheating. */
       
     4 
       
     5 #ifndef CHEAT_TYPE_H
       
     6 #define CHEAT_TYPE_H
       
     7 
       
     8 /**
       
     9  * Info about each of the cheats.
       
    10  */
       
    11 struct Cheat {
       
    12 	bool been_used; ///< has this cheat been used before?
       
    13 	bool value;     ///< tells if the bool cheat is active or not
       
    14 };
       
    15 
       
    16 /**
       
    17  * WARNING! Do _not_ remove entries in Cheats struct or change the order
       
    18  * of the existing ones! Would break downward compatibility.
       
    19  * Only add new entries at the end of the struct!
       
    20  */
       
    21 struct Cheats {
       
    22 	Cheat magic_bulldozer;  ///< dynamite industries, unmovables
       
    23 	Cheat switch_player;    ///< change to another player
       
    24 	Cheat money;            ///< get rich or poor
       
    25 	Cheat crossing_tunnels; ///< allow tunnels that cross each other
       
    26 	Cheat build_in_pause;   ///< build while in pause mode
       
    27 	Cheat no_jetcrash;      ///< no jet will crash on small airports anymore
       
    28 	Cheat switch_climate;   ///< change the climate of the map
       
    29 	Cheat change_date;      ///< changes date ingame
       
    30 	Cheat setup_prod;       ///< setup raw-material production in game
       
    31 	Cheat dummy;            ///< empty cheat (enable running el-engines on normal rail)
       
    32 };
       
    33 
       
    34 extern Cheats _cheats;
       
    35 
       
    36 #endif /* CHEAT_TYPE_H */