OpenTTD
Functions | Variables
cheat_func.h File Reference

Functions related to cheating. More...

#include "cheat_type.h"

Go to the source code of this file.

Functions

void ShowCheatWindow ()
 Open cheat window. More...
 
bool CheatHasBeenUsed ()
 Return true if any cheat has been used, false otherwise. More...
 

Variables

Cheats _cheats
 All the cheats. More...
 

Detailed Description

Functions related to cheating.

Definition in file cheat_func.h.

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().

◆ ShowCheatWindow()

void ShowCheatWindow ( )

Open cheat window.

Definition at line 418 of file cheat_gui.cpp.

References DeleteWindowById(), and WC_CHEATS.

Variable Documentation

◆ _cheats

Cheats _cheats

All the cheats.

Definition at line 18 of file cheat.cpp.