XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Enumerations | Functions | Variables
p_spec.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fireflicker_t
 
struct  lightflash_t
 
struct  strobe_t
 
struct  glow_t
 
struct  switchlist_t
 
struct  button_t
 
struct  plat_t
 
struct  vldoor_t
 
struct  ceiling_t
 
struct  floormove_t
 

Macros

#define MO_TELEPORTMAN   14
 
#define GLOWSPEED   8
 
#define STROBEBRIGHT   5
 
#define FASTDARK   15
 
#define SLOWDARK   35
 
#define MAXSWITCHES   50
 
#define MAXBUTTONS   16
 
#define BUTTONTIME   35
 
#define PLATWAIT   3
 
#define PLATSPEED   FRACUNIT
 
#define MAXPLATS   30
 
#define VDOORSPEED   FRACUNIT*2
 
#define VDOORWAIT   150
 
#define CEILSPEED   FRACUNIT
 
#define CEILWAIT   150
 
#define MAXCEILINGS   30
 
#define FLOORSPEED   FRACUNIT
 

Enumerations

enum  bwhere_e { top , middle , bottom }
 
enum  plat_e { up , down , waiting , in_stasis }
 
enum  plattype_e {
  perpetualRaise , downWaitUpStay , raiseAndChange , raiseToNearestAndChange ,
  blazeDWUS
}
 
enum  vldoor_e {
  vld_normal , vld_close30ThenOpen , vld_close , vld_open ,
  vld_raiseIn5Mins , vld_blazeRaise , vld_blazeOpen , vld_blazeClose
}
 
enum  ceiling_e {
  lowerToFloor , raiseToHighest , lowerAndCrush , crushAndRaise ,
  fastCrushAndRaise , silentCrushAndRaise
}
 
enum  floor_e {
  lowerFloor , lowerFloorToLowest , turboLower , raiseFloor ,
  raiseFloorToNearest , raiseToTexture , lowerAndChange , raiseFloor24 ,
  raiseFloor24AndChange , raiseFloorCrush , raiseFloorTurbo , donutRaise ,
  raiseFloor512
}
 
enum  stair_e { build8 , turbo16 }
 
enum  result_e { ok , crushed , pastdest }
 

Functions

void P_InitPicAnims (void)
 
void P_SpawnSpecials (void)
 
void P_UpdateSpecials (void)
 
boolean P_UseSpecialLine (mobj_t *thing, line_t *line, int side)
 
void P_ShootSpecialLine (mobj_t *thing, line_t *line)
 
void P_CrossSpecialLine (int linenum, int side, mobj_t *thing)
 
void P_PlayerInSpecialSector (player_t *player)
 
int twoSided (int sector, int line)
 
sector_t * getSector (int currentSector, int line, int side)
 
side_t * getSide (int currentSector, int line, int side)
 
fixed_t P_FindLowestFloorSurrounding (sector_t *sec)
 
fixed_t P_FindHighestFloorSurrounding (sector_t *sec)
 
fixed_t P_FindNextHighestFloor (sector_t *sec, int currentheight)
 
fixed_t P_FindLowestCeilingSurrounding (sector_t *sec)
 
fixed_t P_FindHighestCeilingSurrounding (sector_t *sec)
 
int P_FindSectorFromLineTag (line_t *line, int start)
 
int P_FindMinSurroundingLight (sector_t *sector, int max)
 
sector_t * getNextSector (line_t *line, sector_t *sec)
 
int EV_DoDonut (line_t *line)
 
void P_SpawnFireFlicker (sector_t *sector)
 
void T_LightFlash (lightflash_t *flash)
 
void P_SpawnLightFlash (sector_t *sector)
 
void T_StrobeFlash (strobe_t *flash)
 
void P_SpawnStrobeFlash (sector_t *sector, int fastOrSlow, int inSync)
 
void EV_StartLightStrobing (line_t *line)
 
void EV_TurnTagLightsOff (line_t *line)
 
void EV_LightTurnOn (line_t *line, int bright)
 
void T_Glow (glow_t *g)
 
void P_SpawnGlowingLight (sector_t *sector)
 
void P_ChangeSwitchTexture (line_t *line, int useAgain)
 
void P_InitSwitchList (void)
 
void T_PlatRaise (plat_t *plat)
 
int EV_DoPlat (line_t *line, plattype_e type, int amount)
 
void P_AddActivePlat (plat_t *plat)
 
void P_RemoveActivePlat (plat_t *plat)
 
void EV_StopPlat (line_t *line)
 
void P_ActivateInStasis (int tag)
 
void EV_VerticalDoor (line_t *line, mobj_t *thing)
 
int EV_DoDoor (line_t *line, vldoor_e type)
 
int EV_DoLockedDoor (line_t *line, vldoor_e type, mobj_t *thing)
 
void T_VerticalDoor (vldoor_t *door)
 
void P_SpawnDoorCloseIn30 (sector_t *sec)
 
void P_SpawnDoorRaiseIn5Mins (sector_t *sec, int secnum)
 
int EV_DoCeiling (line_t *line, ceiling_e type)
 
void T_MoveCeiling (ceiling_t *ceiling)
 
void P_AddActiveCeiling (ceiling_t *c)
 
void P_RemoveActiveCeiling (ceiling_t *c)
 
int EV_CeilingCrushStop (line_t *line)
 
void P_ActivateInStasisCeiling (line_t *line)
 
result_e T_MovePlane (sector_t *sector, fixed_t speed, fixed_t dest, boolean crush, int floorOrCeiling, int direction)
 
int EV_BuildStairs (line_t *line, stair_e type)
 
int EV_DoFloor (line_t *line, floor_e floortype)
 
void T_MoveFloor (floormove_t *floor)
 
int EV_Teleport (line_t *line, int side, mobj_t *thing)
 

Variables

boolean levelTimer
 
int levelTimeCount
 
button_t buttonlist [MAXBUTTONS]
 
plat_t * activeplats [MAXPLATS]
 
ceiling_t * activeceilings [MAXCEILINGS]
 

Macro Definition Documentation

◆ BUTTONTIME

#define BUTTONTIME   35

◆ CEILSPEED

#define CEILSPEED   FRACUNIT

◆ CEILWAIT

#define CEILWAIT   150

◆ FASTDARK

#define FASTDARK   15

◆ FLOORSPEED

#define FLOORSPEED   FRACUNIT

◆ GLOWSPEED

#define GLOWSPEED   8

◆ MAXBUTTONS

#define MAXBUTTONS   16

◆ MAXCEILINGS

#define MAXCEILINGS   30

◆ MAXPLATS

#define MAXPLATS   30

◆ MAXSWITCHES

#define MAXSWITCHES   50

◆ MO_TELEPORTMAN

#define MO_TELEPORTMAN   14

◆ PLATSPEED

#define PLATSPEED   FRACUNIT

◆ PLATWAIT

#define PLATWAIT   3

◆ SLOWDARK

#define SLOWDARK   35

◆ STROBEBRIGHT

#define STROBEBRIGHT   5

◆ VDOORSPEED

#define VDOORSPEED   FRACUNIT*2

◆ VDOORWAIT

#define VDOORWAIT   150

Enumeration Type Documentation

◆ bwhere_e

enum bwhere_e
Enumerator
top 
middle 
bottom 

◆ ceiling_e

enum ceiling_e
Enumerator
lowerToFloor 
raiseToHighest 
lowerAndCrush 
crushAndRaise 
fastCrushAndRaise 
silentCrushAndRaise 

◆ floor_e

enum floor_e
Enumerator
lowerFloor 
lowerFloorToLowest 
turboLower 
raiseFloor 
raiseFloorToNearest 
raiseToTexture 
lowerAndChange 
raiseFloor24 
raiseFloor24AndChange 
raiseFloorCrush 
raiseFloorTurbo 
donutRaise 
raiseFloor512 

◆ plat_e

enum plat_e
Enumerator
up 
down 
waiting 
in_stasis 

◆ plattype_e

enum plattype_e
Enumerator
perpetualRaise 
downWaitUpStay 
raiseAndChange 
raiseToNearestAndChange 
blazeDWUS 

◆ result_e

enum result_e
Enumerator
ok 
crushed 
pastdest 

◆ stair_e

enum stair_e
Enumerator
build8 
turbo16 

◆ vldoor_e

enum vldoor_e
Enumerator
vld_normal 
vld_close30ThenOpen 
vld_close 
vld_open 
vld_raiseIn5Mins 
vld_blazeRaise 
vld_blazeOpen 
vld_blazeClose 

Function Documentation

◆ EV_BuildStairs()

int EV_BuildStairs ( line_t *  line,
stair_e  type 
)

◆ EV_CeilingCrushStop()

int EV_CeilingCrushStop ( line_t *  line)

◆ EV_DoCeiling()

int EV_DoCeiling ( line_t *  line,
ceiling_e  type 
)

◆ EV_DoDonut()

int EV_DoDonut ( line_t *  line)

◆ EV_DoDoor()

int EV_DoDoor ( line_t *  line,
vldoor_e  type 
)

◆ EV_DoFloor()

int EV_DoFloor ( line_t *  line,
floor_e  floortype 
)

◆ EV_DoLockedDoor()

int EV_DoLockedDoor ( line_t *  line,
vldoor_e  type,
mobj_t *  thing 
)

◆ EV_DoPlat()

int EV_DoPlat ( line_t *  line,
plattype_e  type,
int  amount 
)

◆ EV_LightTurnOn()

void EV_LightTurnOn ( line_t *  line,
int  bright 
)

◆ EV_StartLightStrobing()

void EV_StartLightStrobing ( line_t *  line)

◆ EV_StopPlat()

void EV_StopPlat ( line_t *  line)

◆ EV_Teleport()

int EV_Teleport ( line_t *  line,
int  side,
mobj_t *  thing 
)

◆ EV_TurnTagLightsOff()

void EV_TurnTagLightsOff ( line_t *  line)

◆ EV_VerticalDoor()

void EV_VerticalDoor ( line_t *  line,
mobj_t *  thing 
)

◆ getNextSector()

sector_t * getNextSector ( line_t *  line,
sector_t *  sec 
)

◆ getSector()

sector_t * getSector ( int  currentSector,
int  line,
int  side 
)

◆ getSide()

side_t * getSide ( int  currentSector,
int  line,
int  side 
)

◆ P_ActivateInStasis()

void P_ActivateInStasis ( int  tag)

◆ P_ActivateInStasisCeiling()

void P_ActivateInStasisCeiling ( line_t *  line)

◆ P_AddActiveCeiling()

void P_AddActiveCeiling ( ceiling_t *  c)

◆ P_AddActivePlat()

void P_AddActivePlat ( plat_t *  plat)

◆ P_ChangeSwitchTexture()

void P_ChangeSwitchTexture ( line_t *  line,
int  useAgain 
)

◆ P_CrossSpecialLine()

void P_CrossSpecialLine ( int  linenum,
int  side,
mobj_t *  thing 
)

◆ P_FindHighestCeilingSurrounding()

fixed_t P_FindHighestCeilingSurrounding ( sector_t *  sec)

◆ P_FindHighestFloorSurrounding()

fixed_t P_FindHighestFloorSurrounding ( sector_t *  sec)

◆ P_FindLowestCeilingSurrounding()

fixed_t P_FindLowestCeilingSurrounding ( sector_t *  sec)

◆ P_FindLowestFloorSurrounding()

fixed_t P_FindLowestFloorSurrounding ( sector_t *  sec)

◆ P_FindMinSurroundingLight()

int P_FindMinSurroundingLight ( sector_t *  sector,
int  max 
)

◆ P_FindNextHighestFloor()

fixed_t P_FindNextHighestFloor ( sector_t *  sec,
int  currentheight 
)

◆ P_FindSectorFromLineTag()

int P_FindSectorFromLineTag ( line_t *  line,
int  start 
)

◆ P_InitPicAnims()

void P_InitPicAnims ( void  )

◆ P_InitSwitchList()

void P_InitSwitchList ( void  )

◆ P_PlayerInSpecialSector()

void P_PlayerInSpecialSector ( player_t *  player)

◆ P_RemoveActiveCeiling()

void P_RemoveActiveCeiling ( ceiling_t *  c)

◆ P_RemoveActivePlat()

void P_RemoveActivePlat ( plat_t *  plat)

◆ P_ShootSpecialLine()

void P_ShootSpecialLine ( mobj_t *  thing,
line_t *  line 
)

◆ P_SpawnDoorCloseIn30()

void P_SpawnDoorCloseIn30 ( sector_t *  sec)

◆ P_SpawnDoorRaiseIn5Mins()

void P_SpawnDoorRaiseIn5Mins ( sector_t *  sec,
int  secnum 
)

◆ P_SpawnFireFlicker()

void P_SpawnFireFlicker ( sector_t *  sector)

◆ P_SpawnGlowingLight()

void P_SpawnGlowingLight ( sector_t *  sector)

◆ P_SpawnLightFlash()

void P_SpawnLightFlash ( sector_t *  sector)

◆ P_SpawnSpecials()

void P_SpawnSpecials ( void  )

◆ P_SpawnStrobeFlash()

void P_SpawnStrobeFlash ( sector_t *  sector,
int  fastOrSlow,
int  inSync 
)

◆ P_UpdateSpecials()

void P_UpdateSpecials ( void  )

◆ P_UseSpecialLine()

boolean P_UseSpecialLine ( mobj_t *  thing,
line_t *  line,
int  side 
)

◆ T_Glow()

void T_Glow ( glow_t *  g)

◆ T_LightFlash()

void T_LightFlash ( lightflash_t *  flash)

◆ T_MoveCeiling()

void T_MoveCeiling ( ceiling_t *  ceiling)

◆ T_MoveFloor()

void T_MoveFloor ( floormove_t *  floor)

◆ T_MovePlane()

result_e T_MovePlane ( sector_t *  sector,
fixed_t  speed,
fixed_t  dest,
boolean  crush,
int  floorOrCeiling,
int  direction 
)

◆ T_PlatRaise()

void T_PlatRaise ( plat_t *  plat)

◆ T_StrobeFlash()

void T_StrobeFlash ( strobe_t *  flash)

◆ T_VerticalDoor()

void T_VerticalDoor ( vldoor_t *  door)

◆ twoSided()

int twoSided ( int  sector,
int  line 
)

Variable Documentation

◆ activeceilings

ceiling_t* activeceilings[MAXCEILINGS]
extern

◆ activeplats

plat_t* activeplats[MAXPLATS]
extern

◆ buttonlist

button_t buttonlist[MAXBUTTONS]
extern

◆ levelTimeCount

int levelTimeCount
extern

◆ levelTimer

boolean levelTimer
extern