-
Notifications
You must be signed in to change notification settings - Fork 0
/
d_player.h
98 lines (81 loc) · 1.49 KB
/
d_player.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#ifndef __D_PLAYER__
#define __D_PLAYER__
#include "p_mobj.h"
#include "d_main.h"
typedef enum
{
PST_LIVE,
PST_DEAD,
PST_REBORN
} playerstate_t;
typedef enum
{
CF_NOCLIP = 1,
CF_GODMODE = 2,
CF_NOMOMENTUM = 4
} cheat_t;
typedef struct player_s
{
mobj_t *mo;
playerstate_t playerstate;
ticcmd_t cmd;
int viewz;
int viewheight;
int deltaviewheight;
int bob;
int momx, momy;
int health;
int armorpoints;
int armortype;
int powers[NUMPOWERS];
boolean cards[NUMCARDS];
boolean backpack;
int frags[MAXPLAYERS];
weapontype_t readyweapon;
weapontype_t pendingweapon;
boolean weaponowned[NUMWEAPONS];
int ammo[NUMAMMO];
int maxammo[NUMAMMO];
int attackdown;
int usedown;
int cheats;
int refire;
int killcount;
int itemcount;
int secretcount;
const char *message;
int damagecount;
int bonuscount;
mobj_t *attacker;
int extralight;
int fixedcolormap;
int colormap;
pspdef_t psprites[NUMPSPRITES];
boolean didsecret;
} player_t;
typedef struct
{
boolean in;
int skills;
int sitems;
int ssecret;
int stime;
int frags[4];
int score;
} wbplayerstruct_t;
typedef struct
{
int epsd;
boolean didsecret;
int last;
int next;
int maxkills;
int maxitems;
int maxsecret;
int maxfrags;
int partime;
int pnum;
wbplayerstruct_t plyr[MAXPLAYERS];
int totaltimes;
} wbstartstruct_t;
#endif