OpenTTD
Functions | Variables
cheat.cpp File Reference

Handling (loading/saving/initializing) of cheats. More...

#include "stdafx.h"
#include "cheat_type.h"
#include "safeguards.h"

Go to the source code of this file.

Functions

void InitializeCheats ()
 Reinitialise all the cheats. More...
 
bool CheatHasBeenUsed ()
 Return true if any cheat has been used, false otherwise. More...
 

Variables

Cheats _cheats
 All the cheats. More...
 

Detailed Description

Handling (loading/saving/initializing) of cheats.

Definition in file cheat.cpp.

Function Documentation

◆ CheatHasBeenUsed()

bool CheatHasBeenUsed ( )

Return true if any cheat has been used, false otherwise.

Returns
has a cheat been used?

Definition at line 30 of file cheat.cpp.

References _cheats, and Cheat::been_used.

Referenced by SaveHighScoreValue().

◆ InitializeCheats()

void InitializeCheats ( )

Reinitialise all the cheats.

Definition at line 21 of file cheat.cpp.

Variable Documentation

◆ _cheats

Cheats _cheats

All the cheats.

Definition at line 18 of file cheat.cpp.

Referenced by ChangeTownRating(), CheatHasBeenUsed(), CheckforTownRating(), ClickSetProdCheat(), Load_CHTS(), and Save_CHTS().