cheat.cpp File Reference

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

#include "stdafx.h"
#include "saveload.h"
#include "cheat_type.h"

Go to the source code of this file.

Functions

void InitializeCheats ()
static void Save_CHTS ()
static void Load_CHTS ()
bool CheatHasBeenUsed ()
 Return true if any cheat has been used, false otherwise.

Variables

Cheats _cheats
const ChunkHandler _cheat_chunk_handlers []


Detailed Description

Handling (loading/saving/initializing) of cheats.

Definition in file cheat.cpp.


Function Documentation

bool CheatHasBeenUsed (  ) 

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

Returns:
has a cheat been used?

Definition at line 41 of file cheat.cpp.

References Cheat::been_used.

Referenced by SaveHighScoreValue().


Variable Documentation

const ChunkHandler _cheat_chunk_handlers[]

Initial value:

 {
  { 'CHTS', Save_CHTS,     Load_CHTS,     CH_RIFF | CH_LAST}
}


Generated on Fri Nov 21 19:01:39 2008 for openttd by  doxygen 1.5.6