A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 138 lines 3.2 kB view raw
1/* Emacs style mode select -*- C++ -*- 2 *----------------------------------------------------------------------------- 3 * 4 * 5 * PrBoom a Doom port merged with LxDoom and LSDLDoom 6 * based on BOOM, a modified and improved DOOM engine 7 * Copyright (C) 1999 by 8 * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman 9 * Copyright (C) 1999-2000 by 10 * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze 11 * 12 * This program is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; either version 2 15 * of the License, or (at your option) any later version. 16 * 17 * This program is distributed in the hope that it will be useful, 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 * GNU General Public License for more details. 21 * 22 * You should have received a copy of the GNU General Public License 23 * along with this program; if not, write to the Free Software 24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 25 * 02111-1307, USA. 26 * 27 * DESCRIPTION: 28 * Something to do with weapon sprite frames. Don't ask me. 29 * 30 *----------------------------------------------------------------------------- 31 */ 32 33// We are referring to sprite numbers. 34#include "doomtype.h" 35#include "info.h" 36 37#ifdef __GNUG__ 38#pragma implementation "d_items.h" 39#endif 40#include "d_items.h" 41 42 43// 44// PSPRITE ACTIONS for waepons. 45// This struct controls the weapon animations. 46// 47// Each entry is: 48// ammo/amunition type 49// upstate 50// downstate 51// readystate 52// atkstate, i.e. attack/fire/hit frame 53// flashstate, muzzle flash 54// 55weaponinfo_t weaponinfo[NUMWEAPONS] = 56 { 57 { 58 // fist 59 am_noammo, 60 S_PUNCHUP, 61 S_PUNCHDOWN, 62 S_PUNCH, 63 S_PUNCH1, 64 S_NULL 65 }, 66 { 67 // pistol 68 am_clip, 69 S_PISTOLUP, 70 S_PISTOLDOWN, 71 S_PISTOL, 72 S_PISTOL1, 73 S_PISTOLFLASH 74 }, 75 { 76 // shotgun 77 am_shell, 78 S_SGUNUP, 79 S_SGUNDOWN, 80 S_SGUN, 81 S_SGUN1, 82 S_SGUNFLASH1 83 }, 84 { 85 // chaingun 86 am_clip, 87 S_CHAINUP, 88 S_CHAINDOWN, 89 S_CHAIN, 90 S_CHAIN1, 91 S_CHAINFLASH1 92 }, 93 { 94 // missile launcher 95 am_misl, 96 S_MISSILEUP, 97 S_MISSILEDOWN, 98 S_MISSILE, 99 S_MISSILE1, 100 S_MISSILEFLASH1 101 }, 102 { 103 // plasma rifle 104 am_cell, 105 S_PLASMAUP, 106 S_PLASMADOWN, 107 S_PLASMA, 108 S_PLASMA1, 109 S_PLASMAFLASH1 110 }, 111 { 112 // bfg 9000 113 am_cell, 114 S_BFGUP, 115 S_BFGDOWN, 116 S_BFG, 117 S_BFG1, 118 S_BFGFLASH1 119 }, 120 { 121 // chainsaw 122 am_noammo, 123 S_SAWUP, 124 S_SAWDOWN, 125 S_SAW, 126 S_SAW1, 127 S_NULL 128 }, 129 { 130 // super shotgun 131 am_shell, 132 S_DSGUNUP, 133 S_DSGUNDOWN, 134 S_DSGUN, 135 S_DSGUN1, 136 S_DSGUNFLASH1 137 }, 138 };