summaryrefslogtreecommitdiff
path: root/apps/plugins/xrick/e_rick.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/xrick/e_rick.h')
-rw-r--r--apps/plugins/xrick/e_rick.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/apps/plugins/xrick/e_rick.h b/apps/plugins/xrick/e_rick.h
new file mode 100644
index 0000000000..57b45366d7
--- /dev/null
+++ b/apps/plugins/xrick/e_rick.h
@@ -0,0 +1,50 @@
1/*
2 * xrick/e_rick.h
3 *
4 * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net).
5 * Copyright (C) 2008-2014 Pierluigi Vicinanza.
6 * All rights reserved.
7 *
8 * The use and distribution terms for this software are contained in the file
9 * named README, which can be found in the root of this distribution. By
10 * using this software in any fashion, you are agreeing to be bound by the
11 * terms of this license.
12 *
13 * You must not remove this notice, or any other, from this software.
14 */
15
16#ifndef _E_RICK_H
17#define _E_RICK_H
18
19#include "xrick/system/basic_types.h"
20
21#define E_RICK_NO 1
22#define E_RICK_ENT ent_ents[E_RICK_NO]
23
24typedef enum
25{
26 E_RICK_STSTOP = (1 << 0),
27 E_RICK_STSHOOT = (1 << 1),
28 E_RICK_STCLIMB = (1 << 2),
29 E_RICK_STJUMP = (1 << 3),
30 E_RICK_STZOMBIE = (1 << 4),
31 E_RICK_STDEAD = (1 << 5),
32 E_RICK_STCRAWL = (1 << 6),
33} e_rick_state_t;
34
35extern unsigned e_rick_state;
36inline void e_rick_state_set(e_rick_state_t s) { e_rick_state |= s; }
37inline void e_rick_state_clear(e_rick_state_t s) { e_rick_state &= ~s; }
38inline bool e_rick_state_test(e_rick_state_t s) { return e_rick_state & s; }
39
40extern S16 e_rick_stop_x, e_rick_stop_y;
41
42extern void e_rick_save(void);
43extern void e_rick_restore(void);
44extern void e_rick_action(U8);
45extern void e_rick_gozombie(void);
46extern bool e_rick_boxtest(U8);
47
48#endif /* ndef _E_RICK_H */
49
50/* eof */