1 //------------------------------------------------------------------------- 2 /* 3 Copyright (C) 1997, 2005 - 3D Realms Entertainment 4 5 This file is part of Shadow Warrior version 1.2 6 7 Shadow Warrior is free software; you can redistribute it and/or 8 modify it under the terms of the GNU General Public License 9 as published by the Free Software Foundation; either version 2 10 of the License, or (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 16 See the GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 22 Original Source: 1997 - Frank Maddin and Jim Norwood 23 Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms 24 */ 25 //------------------------------------------------------------------------- 26 27 #ifndef _BREAK_PUBLIC_ 28 #define _BREAK_PUBLIC_ 29 30 #define BF_TOUGH (BIT(0)) 31 #define BF_KILL (BIT(1)) 32 #define BF_BURN (BIT(2)) 33 #define BF_OVERRIDE_BLOCK (BIT(3)) 34 #define BF_FIRE_FALL (BIT(4)) 35 #define BF_LEAVE_BREAK (BIT(5)) 36 37 typedef struct 38 { 39 short picnum, breaknum, shrap_type; 40 short flags, shrap_amt; 41 }BREAK_INFO, *BREAK_INFOp; 42 43 BREAK_INFOp FindWallBreakInfo(short picnum); 44 BREAK_INFOp FindSpriteBreakInfo(short picnum); 45 void SortBreakInfo(void); 46 BREAK_INFOp SetupWallForBreak(WALLp wallp); 47 BREAK_INFOp SetupSpriteForBreak(SPRITEp sp); 48 short FindBreakSpriteMatch(short match); 49 BOOL HitBreakWall(WALLp wp, int, int, int, short ang, short type); 50 int HitBreakSprite(short BreakSprite, short type); 51 BOOL CheckBreakToughness(BREAK_INFOp break_info, short ID); 52 int WallBreakPosition(short hitwall, short *sectnum, int *x, int *y, int *z, short *ang); 53 void SortBreakInfo(void ); 54 55 #endif 56