OpenTTD Source: Cheat Struct Reference

OpenTTD Source 15.0-RC2

Data Fields
Cheat Struct Reference

Info about each of the cheats. More...

`#include <cheat_type.h>`

## Data Fields
bool | been_used = false
| has this cheat been used before?
bool | value = false
| tells if the bool cheat is active or not

## Detailed Description

Info about each of the cheats.

Definition at line 16 of file cheat_type.h.

## Field Documentation

## ◆ been_used

bool Cheat::been_used = false

has this cheat been used before?

Definition at line 17 of file cheat_type.h.

## ◆ value

bool Cheat::value = false

tells if the bool cheat is active or not

Definition at line 18 of file cheat_type.h.

Referenced by ChangeTownRating(), CheckAllowRemoveRoad(), CheckAllowRemoveTunnelBridge(), CheckforTownRating(), CheckOrders(), ClearTile_Town(), ClickSetProdCheat(), CmdBuildTunnel(), FindNearestHangar(), MaybeCrashAirplane(), and UpdateStationRating().

The documentation for this struct was generated from the following file:

- src/cheat_type.h