1 /* 2 Copyright (C) 1994-1995 Apogee Software, Ltd. 3 4 This program is free software; you can redistribute it and/or 5 modify it under the terms of the GNU General Public License 6 as published by the Free Software Foundation; either version 2 7 of the License, or (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 13 See the GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 19 */ 20 #ifndef _rt_ted_private 21 #define _rt_ted_private 22 23 #define MAXPRECACHE 3500 24 25 #include "rt_actor.h" 26 #include "develop.h" 27 28 #define SHAREWARE_TAG 0x4d4b 29 #define REGISTERED_TAG 0x4344 30 #define RTL_VERSION ( 0x0101 ) 31 #define COMMBAT_SIGNATURE ( "RTC" ) 32 #define NORMAL_SIGNATURE ( "RTL" ) 33 #define RTL_HEADER_OFFSET 8 34 35 typedef struct 36 { 37 int lump; 38 int cachelevel; 39 } cachetype; 40 41 //======================================== 42 43 typedef struct 44 { 45 short RLEWtag; 46 long headeroffsets[100]; 47 byte tileinfo[1]; 48 } mapfiletype; 49 50 51 typedef struct 52 { 53 long planestart[3]; 54 word planelength[3]; 55 word width,height; 56 char name[16]; 57 } maptype; 58 59 #define ActorIsPushWall(xx,yy) ((actorat[xx][yy])&&(((objtype *)actorat[xx][yy])->which==PWALL) ) 60 #define ActorIsWall(xx,yy) ((actorat[xx][yy])&&(((objtype *)actorat[xx][yy])->which==WALL) ) 61 #define ActorIsSpring(xx,yy) ((actorat[xx][yy])&&(((objtype *)actorat[xx][yy])->obclass==springobj) ) 62 #define StaticUndefined(xx,yy) ((sprites[xx][yy])&&(((statobj_t *)sprites[xx][yy])->z<-64) ) 63 64 #define PRECACHEASTRINGX 141 65 #define PRECACHEASTRINGY 8 66 67 #define PRECACHEESTRINGX 16 68 #define PRECACHEESTRINGY 8 69 70 #define PRECACHESTRINGX 16 71 #define PRECACHESTRINGY 144 72 73 #define PRECACHEBARX 28 74 #define PRECACHEBARY 178 75 76 #define PRECACHELED1X 9 77 #define PRECACHELED1Y 8 78 79 #define PRECACHELED2X 9 80 #define PRECACHELED2Y 12 81 82 #define MAXLEDS 57 83 84 #define MAXSILLYSTRINGS 32 85 86 #if (SHAREWARE==0) 87 #define STANDARDGAMELEVELS ("DARKWAR.RTL") 88 #if (SUPERROTT==1) 89 #define STANDARDBATTLELEVELS ("ROTTCD.RTC") 90 #elif (SITELICENSE==1) 91 #define STANDARDBATTLELEVELS ("ROTTSITE.RTC") 92 #else 93 #define STANDARDBATTLELEVELS ("DARKWAR.RTC") 94 #endif 95 #else 96 #define STANDARDGAMELEVELS ("HUNTBGIN.RTL") 97 #define STANDARDBATTLELEVELS ("HUNTBGIN.RTC") 98 #endif 99 100 101 102 #endif 103