gzdoom-gles/wadsrc/static/xlat/defines.i
Randy Heit fb50df2c63 About a week's worth of changes here. As a heads-up, I wouldn't be
surprised if this doesn't build in Linux right now. The CMakeLists.txt
were checked with MinGW and NMake, but how they fair under Linux is an
unknown to me at this time.

- Converted most sprintf (and all wsprintf) calls to either mysnprintf or
  FStrings, depending on the situation.
- Changed the strings in the wbstartstruct to be FStrings.
- Changed myvsnprintf() to output nothing if count is greater than INT_MAX.
  This is so that I can use a series of mysnprintf() calls and advance the
  pointer for each one. Once the pointer goes beyond the end of the buffer,
  the count will go negative, but since it's an unsigned type it will be
  seen as excessively huge instead. This should not be a problem, as there's
  no reason for ZDoom to be using text buffers larger than 2 GB anywhere.
- Ripped out the disabled bit from FGameConfigFile::MigrateOldConfig().
- Changed CalcMapName() to return an FString instead of a pointer to a static
  buffer.
- Changed startmap in d_main.cpp into an FString.
- Changed CheckWarpTransMap() to take an FString& as the first argument.
- Changed d_mapname in g_level.cpp into an FString.
- Changed DoSubstitution() in ct_chat.cpp to place the substitutions in an
  FString.
- Fixed: The MAPINFO parser wrote into the string buffer to construct a map
  name when given a Hexen map number. This was fine with the old scanner
  code, but only a happy coincidence prevents it from crashing with the new
  code
- Added the 'B' conversion specifier to StringFormat::VWorker() for printing
  binary numbers.
- Added CMake support for building with MinGW, MSYS, and NMake. Linux support
  is probably broken until I get around to booting into Linux again. Niceties
  provided over the existing Makefiles they're replacing:
  * All command-line builds can use the same build system, rather than having
    a separate one for MinGW and another for Linux.
  * Microsoft's NMake tool is supported as a target.
  * Progress meters.
  * Parallel makes work from a fresh checkout without needing to be primed
    first with a single-threaded make.
  * Porting to other architectures should be simplified, whenever that day
    comes.
- Replaced the makewad tool with zipdir. This handles the dependency tracking
  itself instead of generating an external makefile to do it, since I couldn't
  figure out how to generate a makefile with an external tool and include it
  with a CMake-generated makefile. Where makewad used a master list of files
  to generate the package file, zipdir just zips the entire contents of one or
  more directories.
- Added the gdtoa package from netlib's fp library so that ZDoom's printf-style
  formatting can be entirely independant of the CRT.

SVN r1082 (trunk)
2008-07-23 04:57:26 +00:00

211 lines
3.7 KiB
OpenEdge ABL

// Static_Init types
enum
{
Init_Gravity,
Init_Color,
Init_Damage,
Init_TransferSky = 255
}
// Speeds for ceilings/crushers (x/8 units per tic)
// These are the BOOM names.
enum
{
C_SLOW = 8,
C_NORMAL = 16,
C_FAST = 32,
C_TURBO = 64
}
define CEILWAIT (150)
// Speeds for floors (x/8 units per tic)
enum
{
F_SLOW = 8,
F_NORMAL = 16,
F_FAST = 32,
F_TURBO = 64
}
// Speeds for doors (x/8 units per tic)
enum
{
D_SLOW = 16,
D_NORMAL = 32,
D_FAST = 64,
D_TURBO = 128
}
define VDOORWAIT (150)
// Speeds for stairs (x/8 units per tic)
enum
{
ST_SLOW = 2,
ST_NORMAL = 4,
ST_FAST = 16,
ST_TURBO = 32
}
// Speeds for plats (Hexen plats stop 8 units above the floor)
enum
{
P_SLOW = 8,
P_NORMAL = 16,
P_FAST = 32,
P_TURBO = 64
}
define PLATWAIT (105)
define ELEVATORSPEED (32)
// Speeds for donut slime and pillar (x/8 units per tic)
define DORATE (4)
// Texture scrollers operate at a rate of x/64 units per tic.
define SCROLL_UNIT (64)
define WALK (0)
define USE (2)
define SHOOT (6)
define MONST (16)
define MONWALK (4)
define REP (1)
define FIRSTSIDE (32)
enum
{
NoKey,
RCard,
BCard,
YCard,
RSkull,
BSkull,
YSkull,
AnyKey = 100,
AllKeys = 101,
CardIsSkull = 128
}
enum
{
Light_Phased = 1,
LightSequenceStart = 2,
LightSequenceSpecial1 = 3,
LightSequenceSpecial2 = 4,
Stairs_Special1 = 26,
Stairs_Special2 = 27,
Wind_East_Weak=40,
Wind_East_Medium,
Wind_East_Strong,
Wind_North_Weak,
Wind_North_Medium,
Wind_North_Strong,
Wind_South_Weak,
Wind_South_Medium,
Wind_South_Strong,
Wind_West_Weak,
Wind_West_Medium,
Wind_West_Strong,
// [RH] Equivalents for DOOM's sector specials
dLight_Flicker = 65,
dLight_StrobeFast = 66,
dLight_StrobeSlow = 67,
dLight_Strobe_Hurt = 68,
dDamage_Hellslime = 69,
dDamage_Nukage = 71,
dLight_Glow = 72,
dSector_DoorCloseIn30 = 74,
dDamage_End = 75,
dLight_StrobeSlowSync = 76,
dLight_StrobeFastSync = 77,
dSector_DoorRaiseIn5Mins = 78,
dFriction_Low = 79,
dDamage_SuperHellslime = 80,
dLight_FireFlicker = 81,
dDamage_LavaWimpy = 82,
dDamage_LavaHefty = 83,
dScroll_EastLavaDamage = 84,
Sector_Outside = 87,
// And here are some for Strife
sLight_Strobe_Hurt = 104,
sDamage_Hellslime = 105,
Damage_InstantDeath = 115,
sDamage_SuperHellslime = 116,
Scroll_StrifeCurrent = 118,
// Caverns of Darkness healing sector
Sector_Heal = 196,
Light_OutdoorLightning = 197,
Light_IndoorLightning1 = 198,
Light_IndoorLightning2 = 199,
Sky2 = 200,
// Hexen-type scrollers
Scroll_North_Slow = 201,
Scroll_North_Medium,
Scroll_North_Fast,
Scroll_East_Slow,
Scroll_East_Medium,
Scroll_East_Fast,
Scroll_South_Slow,
Scroll_South_Medium,
Scroll_South_Fast,
Scroll_West_Slow,
Scroll_West_Medium,
Scroll_West_Fast,
Scroll_NorthWest_Slow,
Scroll_NorthWest_Medium,
Scroll_NorthWest_Fast,
Scroll_NorthEast_Slow,
Scroll_NorthEast_Medium,
Scroll_NorthEast_Fast,
Scroll_SouthEast_Slow,
Scroll_SouthEast_Medium,
Scroll_SouthEast_Fast,
Scroll_SouthWest_Slow,
Scroll_SouthWest_Medium,
Scroll_SouthWest_Fast,
// Heretic-type scrollers
Carry_East5 = 225,
Carry_East10,
Carry_East25,
Carry_East30,
Carry_East35,
Carry_North5,
Carry_North10,
Carry_North25,
Carry_North30,
Carry_North35,
Carry_South5,
Carry_South10,
Carry_South25,
Carry_South30,
Carry_South35,
Carry_West5,
Carry_West10,
Carry_West25,
Carry_West30,
Carry_West35
}
// [RH] Equivalents for BOOM's generalized sector types
define DAMAGE_MASK (0x0300)
define SECRET_MASK (0x0400)
define FRICTION_MASK (0x0800)
define PUSH_MASK (0x1000)