DDraceNetwork Docs
mapitems.h File Reference
#include <base/vmath.h>
Include dependency graph for mapitems.h:

Go to the source code of this file.

Classes

struct  CQuad
 
class  CTile
 
struct  CMapItemInfo
 
struct  CMapItemInfoSettings
 
struct  CMapItemImage_v1
 
struct  CMapItemImage_v2
 
struct  CMapItemGroup_v1
 
struct  CMapItemGroup
 
struct  CMapItemLayer
 
struct  CMapItemLayerTilemap
 
struct  CMapItemLayerQuads
 
struct  CMapItemVersion
 
struct  CEnvPoint
 
struct  CEnvPointBezier
 
struct  CEnvPointBezier_upstream
 
struct  CEnvPoint_runtime
 
struct  CMapItemEnvelope_v1
 
struct  CMapItemEnvelope_v2
 
struct  CMapItemEnvelope_v3
 
struct  CSoundShape
 
struct  CSoundShape::CRectangle
 
struct  CSoundShape::CCircle
 
struct  CSoundSource
 
struct  CMapItemLayerSounds
 
struct  CMapItemSound
 
class  CTeleTile
 
class  CSpeedupTile
 
class  CSwitchTile
 
class  CDoorTile
 
class  CTuneTile
 

Typedefs

typedef ivec2 CPoint
 
typedef ivec4 CColor
 
typedef CMapItemImage_v1 CMapItemImage
 
typedef CMapItemEnvelope_v2 CMapItemEnvelope
 

Enumerations

enum  {
  LAYERTYPE_INVALID = 0 , LAYERTYPE_GAME , LAYERTYPE_TILES , LAYERTYPE_QUADS ,
  LAYERTYPE_FRONT , LAYERTYPE_TELE , LAYERTYPE_SPEEDUP , LAYERTYPE_SWITCH ,
  LAYERTYPE_TUNE , LAYERTYPE_SOUNDS_DEPRECATED , LAYERTYPE_SOUNDS , MAPITEMTYPE_VERSION = 0 ,
  MAPITEMTYPE_INFO , MAPITEMTYPE_IMAGE , MAPITEMTYPE_ENVELOPE , MAPITEMTYPE_GROUP ,
  MAPITEMTYPE_LAYER , MAPITEMTYPE_ENVPOINTS , MAPITEMTYPE_SOUND , CURVETYPE_STEP = 0 ,
  CURVETYPE_LINEAR , CURVETYPE_SLOW , CURVETYPE_FAST , CURVETYPE_SMOOTH ,
  CURVETYPE_BEZIER , NUM_CURVETYPES , ENTITY_NULL = 0 , ENTITY_SPAWN ,
  ENTITY_SPAWN_RED , ENTITY_SPAWN_BLUE , ENTITY_FLAGSTAND_RED , ENTITY_FLAGSTAND_BLUE ,
  ENTITY_ARMOR_1 , ENTITY_HEALTH_1 , ENTITY_WEAPON_SHOTGUN , ENTITY_WEAPON_GRENADE ,
  ENTITY_POWERUP_NINJA , ENTITY_WEAPON_LASER , ENTITY_LASER_FAST_CCW , ENTITY_LASER_NORMAL_CCW ,
  ENTITY_LASER_SLOW_CCW , ENTITY_LASER_STOP , ENTITY_LASER_SLOW_CW , ENTITY_LASER_NORMAL_CW ,
  ENTITY_LASER_FAST_CW , ENTITY_LASER_SHORT , ENTITY_LASER_MEDIUM , ENTITY_LASER_LONG ,
  ENTITY_LASER_C_SLOW , ENTITY_LASER_C_NORMAL , ENTITY_LASER_C_FAST , ENTITY_LASER_O_SLOW ,
  ENTITY_LASER_O_NORMAL , ENTITY_LASER_O_FAST , ENTITY_PLASMAE = 29 , ENTITY_PLASMAF ,
  ENTITY_PLASMA , ENTITY_PLASMAU , ENTITY_CRAZY_SHOTGUN_EX , ENTITY_CRAZY_SHOTGUN ,
  ENTITY_ARMOR_SHOTGUN , ENTITY_ARMOR_GRENADE , ENTITY_ARMOR_NINJA , ENTITY_ARMOR_LASER ,
  ENTITY_DRAGGER_WEAK = 42 , ENTITY_DRAGGER_NORMAL , ENTITY_DRAGGER_STRONG , ENTITY_DRAGGER_WEAK_NW ,
  ENTITY_DRAGGER_NORMAL_NW , ENTITY_DRAGGER_STRONG_NW , ENTITY_DOOR = 49 , NUM_ENTITIES ,
  TILE_AIR = 0 , TILE_SOLID , TILE_DEATH , TILE_NOHOOK ,
  TILE_NOLASER , TILE_THROUGH_CUT , TILE_THROUGH , TILE_JUMP ,
  TILE_FREEZE = 9 , TILE_TELEINEVIL , TILE_UNFREEZE , TILE_DFREEZE ,
  TILE_DUNFREEZE , TILE_TELEINWEAPON , TILE_TELEINHOOK , TILE_WALLJUMP = 16 ,
  TILE_EHOOK_ENABLE , TILE_EHOOK_DISABLE , TILE_HIT_ENABLE , TILE_HIT_DISABLE ,
  TILE_SOLO_ENABLE , TILE_SOLO_DISABLE , TILE_SWITCHTIMEDOPEN = 22 , TILE_SWITCHTIMEDCLOSE ,
  TILE_SWITCHOPEN , TILE_SWITCHCLOSE , TILE_TELEIN , TILE_TELEOUT ,
  TILE_BOOST , TILE_TELECHECK , TILE_TELECHECKOUT , TILE_TELECHECKIN ,
  TILE_REFILL_JUMPS = 32 , TILE_START , TILE_FINISH , TILE_TIME_CHECKPOINT_FIRST = 35 ,
  TILE_TIME_CHECKPOINT_LAST = 59 , TILE_STOP = 60 , TILE_STOPS , TILE_STOPA ,
  TILE_TELECHECKINEVIL , TILE_CP , TILE_CP_F , TILE_THROUGH_ALL ,
  TILE_THROUGH_DIR , TILE_TUNE , TILE_OLDLASER = 71 , TILE_NPC ,
  TILE_EHOOK , TILE_NOHIT , TILE_NPH , TILE_UNLOCK_TEAM ,
  TILE_ADD_TIME = 79 , TILE_NPC_DISABLE = 88 , TILE_UNLIMITED_JUMPS_DISABLE , TILE_JETPACK_DISABLE ,
  TILE_NPH_DISABLE , TILE_SUBTRACT_TIME = 95 , TILE_TELE_GUN_ENABLE = 96 , TILE_TELE_GUN_DISABLE = 97 ,
  TILE_ALLOW_TELE_GUN = 98 , TILE_ALLOW_BLUE_TELE_GUN = 99 , TILE_NPC_ENABLE = 104 , TILE_UNLIMITED_JUMPS_ENABLE ,
  TILE_JETPACK_ENABLE , TILE_NPH_ENABLE , TILE_TELE_GRENADE_ENABLE = 112 , TILE_TELE_GRENADE_DISABLE = 113 ,
  TILE_TELE_LASER_ENABLE = 128 , TILE_TELE_LASER_DISABLE = 129 , TILE_CREDITS_1 = 140 , TILE_CREDITS_2 = 141 ,
  TILE_CREDITS_3 = 142 , TILE_CREDITS_4 = 143 , TILE_LFREEZE = 144 , TILE_LUNFREEZE = 145 ,
  TILE_CREDITS_5 = 156 , TILE_CREDITS_6 = 157 , TILE_CREDITS_7 = 158 , TILE_CREDITS_8 = 159 ,
  TILE_ENTITIES_OFF_1 = 190 , TILE_ENTITIES_OFF_2 , LAYER_GAME = 0 , LAYER_FRONT ,
  LAYER_TELE , LAYER_SPEEDUP , LAYER_SWITCH , LAYER_TUNE ,
  NUM_LAYERS , TILEFLAG_XFLIP = 1 , TILEFLAG_YFLIP = 2 , TILEFLAG_OPAQUE = 4 ,
  TILEFLAG_ROTATE = 8 , ROTATION_0 = 0 , ROTATION_90 = TILEFLAG_ROTATE , ROTATION_180 = (TILEFLAG_XFLIP | TILEFLAG_YFLIP) ,
  ROTATION_270 = (TILEFLAG_XFLIP | TILEFLAG_YFLIP | TILEFLAG_ROTATE) , LAYERFLAG_DETAIL = 1 , TILESLAYERFLAG_GAME = 1 , TILESLAYERFLAG_TELE = 2 ,
  TILESLAYERFLAG_SPEEDUP = 4 , TILESLAYERFLAG_FRONT = 8 , TILESLAYERFLAG_SWITCH = 16 , TILESLAYERFLAG_TUNE = 32 ,
  ENTITY_OFFSET = 255 - 16 * 4
}
 

Functions

bool IsValidGameTile (int Index)
 
bool IsValidFrontTile (int Index)
 
bool IsValidTeleTile (int Index)
 
bool IsTeleTileCheckpoint (int Index)
 
bool IsTeleTileNumberUsed (int Index, bool Checkpoint)
 
bool IsTeleTileNumberUsedAny (int Index)
 
bool IsValidSpeedupTile (int Index)
 
bool IsValidSwitchTile (int Index)
 
bool IsSwitchTileFlagsUsed (int Index)
 
bool IsSwitchTileNumberUsed (int Index)
 
bool IsSwitchTileDelayUsed (int Index)
 
bool IsValidTuneTile (int Index)
 
bool IsValidEntity (int Index)
 
bool IsRotatableTile (int Index)
 
bool IsCreditsTile (int TileIndex)
 
int PackColor (CColor Color)
 

Variables

static constexpr size_t MAX_MAPIMAGES = 64
 
static constexpr size_t MAX_MAPSOUNDS = 64
 

Typedef Documentation

◆ CColor

typedef ivec4 CColor

◆ CMapItemEnvelope

◆ CMapItemImage

◆ CPoint

typedef ivec2 CPoint

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LAYERTYPE_INVALID 
LAYERTYPE_GAME 
LAYERTYPE_TILES 
LAYERTYPE_QUADS 
LAYERTYPE_FRONT 
LAYERTYPE_TELE 
LAYERTYPE_SPEEDUP 
LAYERTYPE_SWITCH 
LAYERTYPE_TUNE 
LAYERTYPE_SOUNDS_DEPRECATED 
LAYERTYPE_SOUNDS 
MAPITEMTYPE_VERSION 
MAPITEMTYPE_INFO 
MAPITEMTYPE_IMAGE 
MAPITEMTYPE_ENVELOPE 
MAPITEMTYPE_GROUP 
MAPITEMTYPE_LAYER 
MAPITEMTYPE_ENVPOINTS 
MAPITEMTYPE_SOUND 
CURVETYPE_STEP 
CURVETYPE_LINEAR 
CURVETYPE_SLOW 
CURVETYPE_FAST 
CURVETYPE_SMOOTH 
CURVETYPE_BEZIER 
NUM_CURVETYPES 
ENTITY_NULL 
ENTITY_SPAWN 
ENTITY_SPAWN_RED 
ENTITY_SPAWN_BLUE 
ENTITY_FLAGSTAND_RED 
ENTITY_FLAGSTAND_BLUE 
ENTITY_ARMOR_1 
ENTITY_HEALTH_1 
ENTITY_WEAPON_SHOTGUN 
ENTITY_WEAPON_GRENADE 
ENTITY_POWERUP_NINJA 
ENTITY_WEAPON_LASER 
ENTITY_LASER_FAST_CCW 
ENTITY_LASER_NORMAL_CCW 
ENTITY_LASER_SLOW_CCW 
ENTITY_LASER_STOP 
ENTITY_LASER_SLOW_CW 
ENTITY_LASER_NORMAL_CW 
ENTITY_LASER_FAST_CW 
ENTITY_LASER_SHORT 
ENTITY_LASER_MEDIUM 
ENTITY_LASER_LONG 
ENTITY_LASER_C_SLOW 
ENTITY_LASER_C_NORMAL 
ENTITY_LASER_C_FAST 
ENTITY_LASER_O_SLOW 
ENTITY_LASER_O_NORMAL 
ENTITY_LASER_O_FAST 
ENTITY_PLASMAE 
ENTITY_PLASMAF 
ENTITY_PLASMA 
ENTITY_PLASMAU 
ENTITY_CRAZY_SHOTGUN_EX 
ENTITY_CRAZY_SHOTGUN 
ENTITY_ARMOR_SHOTGUN 
ENTITY_ARMOR_GRENADE 
ENTITY_ARMOR_NINJA 
ENTITY_ARMOR_LASER 
ENTITY_DRAGGER_WEAK 
ENTITY_DRAGGER_NORMAL 
ENTITY_DRAGGER_STRONG 
ENTITY_DRAGGER_WEAK_NW 
ENTITY_DRAGGER_NORMAL_NW 
ENTITY_DRAGGER_STRONG_NW 
ENTITY_DOOR 
NUM_ENTITIES 
TILE_AIR 
TILE_SOLID 
TILE_DEATH 
TILE_NOHOOK 
TILE_NOLASER 
TILE_THROUGH_CUT 
TILE_THROUGH 
TILE_JUMP 
TILE_FREEZE 
TILE_TELEINEVIL 
TILE_UNFREEZE 
TILE_DFREEZE 
TILE_DUNFREEZE 
TILE_TELEINWEAPON 
TILE_TELEINHOOK 
TILE_WALLJUMP 
TILE_EHOOK_ENABLE 
TILE_EHOOK_DISABLE 
TILE_HIT_ENABLE 
TILE_HIT_DISABLE 
TILE_SOLO_ENABLE 
TILE_SOLO_DISABLE 
TILE_SWITCHTIMEDOPEN 
TILE_SWITCHTIMEDCLOSE 
TILE_SWITCHOPEN 
TILE_SWITCHCLOSE 
TILE_TELEIN 
TILE_TELEOUT 
TILE_BOOST 
TILE_TELECHECK 
TILE_TELECHECKOUT 
TILE_TELECHECKIN 
TILE_REFILL_JUMPS 
TILE_START 
TILE_FINISH 
TILE_TIME_CHECKPOINT_FIRST 
TILE_TIME_CHECKPOINT_LAST 
TILE_STOP 
TILE_STOPS 
TILE_STOPA 
TILE_TELECHECKINEVIL 
TILE_CP 
TILE_CP_F 
TILE_THROUGH_ALL 
TILE_THROUGH_DIR 
TILE_TUNE 
TILE_OLDLASER 
TILE_NPC 
TILE_EHOOK 
TILE_NOHIT 
TILE_NPH 
TILE_UNLOCK_TEAM 
TILE_ADD_TIME 
TILE_NPC_DISABLE 
TILE_UNLIMITED_JUMPS_DISABLE 
TILE_JETPACK_DISABLE 
TILE_NPH_DISABLE 
TILE_SUBTRACT_TIME 
TILE_TELE_GUN_ENABLE 
TILE_TELE_GUN_DISABLE 
TILE_ALLOW_TELE_GUN 
TILE_ALLOW_BLUE_TELE_GUN 
TILE_NPC_ENABLE 
TILE_UNLIMITED_JUMPS_ENABLE 
TILE_JETPACK_ENABLE 
TILE_NPH_ENABLE 
TILE_TELE_GRENADE_ENABLE 
TILE_TELE_GRENADE_DISABLE 
TILE_TELE_LASER_ENABLE 
TILE_TELE_LASER_DISABLE 
TILE_CREDITS_1 
TILE_CREDITS_2 
TILE_CREDITS_3 
TILE_CREDITS_4 
TILE_LFREEZE 
TILE_LUNFREEZE 
TILE_CREDITS_5 
TILE_CREDITS_6 
TILE_CREDITS_7 
TILE_CREDITS_8 
TILE_ENTITIES_OFF_1 
TILE_ENTITIES_OFF_2 
LAYER_GAME 
LAYER_FRONT 
LAYER_TELE 
LAYER_SPEEDUP 
LAYER_SWITCH 
LAYER_TUNE 
NUM_LAYERS 
TILEFLAG_XFLIP 
TILEFLAG_YFLIP 
TILEFLAG_OPAQUE 
TILEFLAG_ROTATE 
ROTATION_0 
ROTATION_90 
ROTATION_180 
ROTATION_270 
LAYERFLAG_DETAIL 
TILESLAYERFLAG_GAME 
TILESLAYERFLAG_TELE 
TILESLAYERFLAG_SPEEDUP 
TILESLAYERFLAG_FRONT 
TILESLAYERFLAG_SWITCH 
TILESLAYERFLAG_TUNE 
ENTITY_OFFSET 

Function Documentation

◆ IsCreditsTile()

bool IsCreditsTile ( int  TileIndex)

◆ IsRotatableTile()

bool IsRotatableTile ( int  Index)

◆ IsSwitchTileDelayUsed()

bool IsSwitchTileDelayUsed ( int  Index)

◆ IsSwitchTileFlagsUsed()

bool IsSwitchTileFlagsUsed ( int  Index)

◆ IsSwitchTileNumberUsed()

bool IsSwitchTileNumberUsed ( int  Index)

◆ IsTeleTileCheckpoint()

bool IsTeleTileCheckpoint ( int  Index)

◆ IsTeleTileNumberUsed()

bool IsTeleTileNumberUsed ( int  Index,
bool  Checkpoint 
)

◆ IsTeleTileNumberUsedAny()

bool IsTeleTileNumberUsedAny ( int  Index)

◆ IsValidEntity()

bool IsValidEntity ( int  Index)

◆ IsValidFrontTile()

bool IsValidFrontTile ( int  Index)

◆ IsValidGameTile()

bool IsValidGameTile ( int  Index)

◆ IsValidSpeedupTile()

bool IsValidSpeedupTile ( int  Index)

◆ IsValidSwitchTile()

bool IsValidSwitchTile ( int  Index)

◆ IsValidTeleTile()

bool IsValidTeleTile ( int  Index)

◆ IsValidTuneTile()

bool IsValidTuneTile ( int  Index)

◆ PackColor()

int PackColor ( CColor  Color)

Variable Documentation

◆ MAX_MAPIMAGES

constexpr size_t MAX_MAPIMAGES = 64
staticconstexpr

◆ MAX_MAPSOUNDS

constexpr size_t MAX_MAPSOUNDS = 64
staticconstexpr