OpenTTD Source  20241108-master-g80f628063a
cheat_type.h
Go to the documentation of this file.
1 /*
2  * This file is part of OpenTTD.
3  * 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.
4  * 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.
5  * 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/>.
6  */
7 
10 #ifndef CHEAT_TYPE_H
11 #define CHEAT_TYPE_H
12 
16 struct Cheat {
17  bool been_used;
18  bool value;
19 };
20 
26 struct Cheats {
36 };
37 
38 extern Cheats _cheats;
39 
40 #endif /* CHEAT_TYPE_H */
Cheats _cheats
All the cheats.
Definition: cheat.cpp:16
Info about each of the cheats.
Definition: cheat_type.h:16
bool value
tells if the bool cheat is active or not
Definition: cheat_type.h:18
bool been_used
has this cheat been used before?
Definition: cheat_type.h:17
WARNING! Do not remove entries in Cheats struct or change the order of the existing ones!...
Definition: cheat_type.h:26
Cheat crossing_tunnels
allow tunnels that cross each other
Definition: cheat_type.h:30
Cheat no_jetcrash
no jet will crash on small airports anymore
Definition: cheat_type.h:31
Cheat change_date
changes date ingame
Definition: cheat_type.h:32
Cheat station_rating
Fix station ratings at 100%.
Definition: cheat_type.h:35
Cheat money
get rich or poor
Definition: cheat_type.h:29
Cheat setup_prod
setup raw-material production in game
Definition: cheat_type.h:33
Cheat switch_company
change to another company
Definition: cheat_type.h:28
Cheat magic_bulldozer
dynamite industries, objects
Definition: cheat_type.h:27
Cheat edit_max_hl
edit the maximum heightlevel; this is a cheat because of the fact that it needs to reset NewGRF game ...
Definition: cheat_type.h:34