2016-03-01 15:47:10 +00:00
|
|
|
// Emacs style mode select -*- C++ -*-
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// $Id:$
|
|
|
|
//
|
|
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
|
|
//
|
|
|
|
// This source is available for distribution and/or modification
|
|
|
|
// only under the terms of the DOOM Source Code License as
|
|
|
|
// published by id Software. All rights reserved.
|
|
|
|
//
|
|
|
|
// The source is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
// DESCRIPTION:
|
|
|
|
// Cheat code checking.
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __M_CHEAT_H__
|
|
|
|
#define __M_CHEAT_H__
|
|
|
|
|
|
|
|
//
|
|
|
|
// CHEAT SEQUENCE PACKAGE
|
|
|
|
//
|
|
|
|
|
|
|
|
// [RH] Functions that actually perform the cheating
|
|
|
|
class player_t;
|
2017-02-08 18:42:24 +00:00
|
|
|
class PClassActor;
|
2016-03-01 15:47:10 +00:00
|
|
|
|
2017-02-27 19:07:21 +00:00
|
|
|
void cht_DoMDK(player_t *player, const char *mod);
|
2016-03-01 15:47:10 +00:00
|
|
|
void cht_DoCheat (player_t *player, int cheat);
|
|
|
|
void cht_Give (player_t *player, const char *item, int amount=1);
|
|
|
|
void cht_Take (player_t *player, const char *item, int amount=1);
|
2017-03-14 10:44:21 +00:00
|
|
|
void cht_SetInv(player_t *player, const char *item, int amount = 1, bool beyondMax = false);
|
2016-03-01 15:47:10 +00:00
|
|
|
void cht_Suicide (player_t *player);
|
2017-02-08 18:42:24 +00:00
|
|
|
const char *cht_Morph (player_t *player, PClassActor *morphclass, bool quickundo);
|
2016-03-01 15:47:10 +00:00
|
|
|
|
|
|
|
#endif
|