d_player.h (1984B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #ifndef __D_PLAYER__ 24 #define __D_PLAYER__ 25 26 27 28 29 30 31 #include "d_items.h" 32 #include "p_pspr.h" 33 34 35 36 #include "p_mobj.h" 37 38 39 40 41 #include "d_ticcmd.h" 42 43 #ifdef __GNUG__ 44 #pragma interface 45 #endif 46 47 48 49 50 51 52 53 typedef enum 54 { 55 56 PST_LIVE, 57 58 PST_DEAD, 59 60 PST_REBORN 61 62 } playerstate_t; 63 64 65 66 67 68 typedef enum 69 { 70 71 CF_NOCLIP = 1, 72 73 CF_GODMODE = 2, 74 75 CF_NOMOMENTUM = 4 76 77 } cheat_t; 78 79 80 81 82 83 typedef struct player_s 84 { 85 mobj_t* mo; 86 playerstate_t playerstate; 87 ticcmd_t cmd; 88 89 90 91 92 fixed_t viewz; 93 94 fixed_t viewheight; 95 96 fixed_t deltaviewheight; 97 98 fixed_t bob; 99 100 101 102 int health; 103 int armorpoints; 104 105 int armortype; 106 107 108 int powers[NUMPOWERS]; 109 boolean cards[NUMCARDS]; 110 boolean backpack; 111 112 113 int frags[MAXPLAYERS]; 114 weapontype_t readyweapon; 115 116 117 weapontype_t pendingweapon; 118 119 boolean weaponowned[NUMWEAPONS]; 120 int ammo[NUMAMMO]; 121 int maxammo[NUMAMMO]; 122 123 124 int attackdown; 125 int usedown; 126 127 128 129 int cheats; 130 131 132 int refire; 133 134 135 int killcount; 136 int itemcount; 137 int secretcount; 138 139 140 char* message; 141 142 143 int damagecount; 144 int bonuscount; 145 146 147 mobj_t* attacker; 148 149 150 int extralight; 151 152 153 154 int fixedcolormap; 155 156 157 158 int colormap; 159 160 161 pspdef_t psprites[NUMPSPRITES]; 162 163 164 boolean didsecret; 165 166 } player_t; 167 168 169 170 171 172 173 typedef struct 174 { 175 boolean in; 176 177 178 int skills; 179 int sitems; 180 int ssecret; 181 int stime; 182 int frags[4]; 183 int score; 184 185 } wbplayerstruct_t; 186 187 typedef struct 188 { 189 int epsd; 190 191 192 boolean didsecret; 193 194 195 int last; 196 int next; 197 198 int maxkills; 199 int maxitems; 200 int maxsecret; 201 int maxfrags; 202 203 204 int partime; 205 206 207 int pnum; 208 209 wbplayerstruct_t plyr[MAXPLAYERS]; 210 211 } wbstartstruct_t; 212 213 214 #endif 215 216 217 218 219