# Correct the needed linklibs in curl-config also.
[AROS-Contrib.git] / Games / Doom / m_cheat.h
blob2ec95bb592266a05b8111ba0e80bed251b291b23
1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // $Id$
5 //
6 // Copyright (C) 1993-1996 by id Software, Inc.
7 //
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
15 // for more details.
17 // DESCRIPTION:
18 // Cheat code checking.
20 //-----------------------------------------------------------------------------
23 #ifndef __M_CHEAT__
24 #define __M_CHEAT__
27 // CHEAT SEQUENCE PACKAGE
30 #define SCRAMBLE(a) \
31 ((((a)&1)<<7) + (((a)&2)<<5) + ((a)&4) + (((a)&8)<<1) \
32 + (((a)&16)>>1) + ((a)&32) + (((a)&64)>>5) + (((a)&128)>>7))
34 typedef struct
36 unsigned char* sequence;
37 unsigned char* p;
39 } cheatseq_t;
41 int
42 cht_CheckCheat
43 ( cheatseq_t* cht,
44 char key );
47 void
48 cht_GetParam
49 ( cheatseq_t* cht,
50 char* buffer );
53 #endif
54 //-----------------------------------------------------------------------------
56 // $Log$
57 // Revision 1.1 2000/02/29 18:21:06 stegerg
58 // Doom port based on ADoomPPC. Read README.AROS!
61 //-----------------------------------------------------------------------------