SBSPSS/Utils/MapEdit/LayerDef.h

100 lines
3.0 KiB
C
Raw Normal View History

2001-02-20 16:57:03 +01:00
/******************/
2000-12-06 20:29:40 +01:00
/*** Layer Defs ***/
/******************/
#ifndef __LAYER_DEFS_HEADER__
#define __LAYER_DEFS_HEADER__
/*****************************************************************************/
2001-01-24 23:35:11 +01:00
// Max size is 8 * 6
2000-12-06 20:29:40 +01:00
enum LAYER_TYPE
{
LAYER_TYPE_TILE=0,
2001-01-23 22:53:48 +01:00
LAYER_TYPE_COLLISION,
2001-02-09 22:17:01 +01:00
LAYER_TYPE_SHADE,
2001-03-26 23:29:09 +02:00
LAYER_TYPE_ACTOR,
2001-03-13 22:00:34 +01:00
LAYER_TYPE_ITEM,
2001-03-26 23:29:09 +02:00
LAYER_TYPE_PLATFORM,
2001-04-07 23:05:33 +02:00
LAYER_TYPE_TRIGGER,
LAYER_TYPE_FX,
2001-04-30 23:49:54 +02:00
LAYER_TYPE_HAZARD,
2001-07-28 18:33:48 +02:00
LAYER_TYPE_RGB,
2000-12-06 20:29:40 +01:00
LAYER_TYPE_MAX
};
enum LAYER_SUBTYPE
{
2001-01-23 22:53:48 +01:00
LAYER_SUBTYPE_NONE=-1,
2001-02-09 22:17:01 +01:00
LAYER_SUBTYPE_BACK=0,
LAYER_SUBTYPE_MID,
LAYER_SUBTYPE_ACTION,
LAYER_SUBTYPE_FORE,
LAYER_SUBTYPE_SCRATCH,
2000-12-06 20:29:40 +01:00
};
2001-03-01 18:28:20 +01:00
enum LAYER_SUBVIEW
{
LAYER_SUBVIEW_NONE=0,
LAYER_SUBVIEW_TILEBANK,
};
2000-12-06 20:29:40 +01:00
enum TILE_FLAG
{
2001-05-30 19:02:54 +02:00
PC_TILE_FLAG_MIRROR_X =1<<0,
PC_TILE_FLAG_MIRROR_Y =1<<1,
PC_TILE_FLAG_MIRROR_XY =PC_TILE_FLAG_MIRROR_X | PC_TILE_FLAG_MIRROR_Y,
PC_TILE_COLLISION_NORMAL =0,
PC_TILE_COLLISION_DAMAGE =1,
PC_TILE_COLLISION_SLIPPERY =2,
PC_TILE_COLLISION_ELECTRIC =3,
PC_TILE_COLLISION_DESTRUCTABLE_WALL =4,
2001-05-31 16:00:48 +02:00
PC_TILE_COLLISION_SOAKUP =5,
2001-05-30 19:02:54 +02:00
PC_TILE_COLLISION_SOLID =6,
PC_TILE_COLLISION_DEATH_FALL =7,
PC_TILE_COLLISION_DESTRUCTABLE_FLOOR =8,
PC_TILE_COLLISION_DEATH_INSTANT =9,
PC_TILE_COLLISION_MOVE_LEFT =10,
PC_TILE_COLLISION_MOVE_RIGHT =11,
2001-05-31 16:00:48 +02:00
PC_TILE_COLLISION_DEATH_LIQUID =12,
2001-07-05 23:17:31 +02:00
PC_TILE_COLLISION_SB_NOMOVE =13,
2001-02-20 16:57:03 +01:00
2001-05-30 19:02:54 +02:00
PC_TILE_FLAG_COLLISION_SHIFT =2,
PC_TILE_FLAG_COLLISION_NORMAL =PC_TILE_COLLISION_NORMAL<<PC_TILE_FLAG_COLLISION_SHIFT,
PC_TILE_FLAG_COLLISION_SOLID =PC_TILE_COLLISION_SOLID<<PC_TILE_FLAG_COLLISION_SHIFT,
PC_TILE_FLAG_COLLISION_SLIPPERY =PC_TILE_COLLISION_SLIPPERY<<PC_TILE_FLAG_COLLISION_SHIFT,
PC_TILE_FLAG_COLLISION_MOVE_LEFT =PC_TILE_COLLISION_MOVE_LEFT<<PC_TILE_FLAG_COLLISION_SHIFT,
PC_TILE_FLAG_COLLISION_MOVE_RIGHT =PC_TILE_COLLISION_MOVE_RIGHT<<PC_TILE_FLAG_COLLISION_SHIFT,
2001-05-31 16:00:48 +02:00
PC_TILE_FLAG_COLLISION_SOAKUP =PC_TILE_COLLISION_SOAKUP<<PC_TILE_FLAG_COLLISION_SHIFT,
2001-07-05 23:17:31 +02:00
PC_TILE_FLAG_COLLISION_SB_NOMOVE =PC_TILE_COLLISION_SB_NOMOVE<<PC_TILE_FLAG_COLLISION_SHIFT,
2001-05-30 19:02:54 +02:00
PC_TILE_FLAG_COLLISION_DAMAGE =PC_TILE_COLLISION_DAMAGE<<PC_TILE_FLAG_COLLISION_SHIFT,
PC_TILE_FLAG_COLLISION_ELECTRIC =PC_TILE_COLLISION_ELECTRIC<<PC_TILE_FLAG_COLLISION_SHIFT,
PC_TILE_FLAG_COLLISION_DEATH_LIQUID =PC_TILE_COLLISION_DEATH_LIQUID<<PC_TILE_FLAG_COLLISION_SHIFT,
PC_TILE_FLAG_COLLISION_DEATH_FALL =PC_TILE_COLLISION_DEATH_FALL<<PC_TILE_FLAG_COLLISION_SHIFT,
PC_TILE_FLAG_COLLISION_DEATH_INSTANT =PC_TILE_COLLISION_DEATH_INSTANT<<PC_TILE_FLAG_COLLISION_SHIFT,
2001-02-20 16:57:03 +01:00
2001-05-30 19:02:54 +02:00
PC_TILE_FLAG_COLLISION_DESTRUCTABLE_WALL =PC_TILE_COLLISION_DESTRUCTABLE_WALL<<PC_TILE_FLAG_COLLISION_SHIFT,
PC_TILE_FLAG_COLLISION_DESTRUCTABLE_FLOOR =PC_TILE_COLLISION_DESTRUCTABLE_FLOOR<<PC_TILE_FLAG_COLLISION_SHIFT,
PC_TILE_FLAG_COLLISION_MASK = ~PC_TILE_FLAG_MIRROR_XY,
2001-02-20 16:57:03 +01:00
};
enum
{
LAYER_SHADE_MAX=4,
2000-12-06 20:29:40 +01:00
};
2001-03-26 23:29:09 +02:00
struct sLayerDef
{
int Type;
int SubType;
int Width;
int Height;
bool VisibleFlag;
};
2000-12-06 20:29:40 +01:00
/*****************************************************************************/
#endif