mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-15 00:42:20 +00:00
17a2666bd4
Now all actors have the same metaclass and therefore it will always be the same size which will finally allow some needed changes to the type system which couldn't be done because it was occasionally necessary to replace tentatively created classes due to size mismatches.
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
// 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;
|
|
class PClassActor;
|
|
|
|
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);
|
|
void cht_Suicide (player_t *player);
|
|
const char *cht_Morph (player_t *player, PClassActor *morphclass, bool quickundo);
|
|
|
|
#endif
|