XenevaOS
Loading...
Searching...
No Matches
Macros | Functions | Variables
p_inter.c File Reference
#include "doomdef.h"
#include "dstrings.h"
#include "sounds.h"
#include "deh_main.h"
#include "deh_misc.h"
#include "doomstat.h"
#include "m_random.h"
#include "i_system.h"
#include "am_map.h"
#include "p_local.h"
#include "s_sound.h"
#include "p_inter.h"
Include dependency graph for p_inter.c:

Macros

#define BONUSADD   6
 

Functions

boolean P_GiveAmmo (player_t *player, ammotype_t ammo, int num)
 
boolean P_GiveWeapon (player_t *player, weapontype_t weapon, boolean dropped)
 
boolean P_GiveBody (player_t *player, int num)
 
boolean P_GiveArmor (player_t *player, int armortype)
 
void P_GiveCard (player_t *player, card_t card)
 
boolean P_GivePower (player_t *player, int power)
 
void P_TouchSpecialThing (mobj_t *special, mobj_t *toucher)
 
void P_KillMobj (mobj_t *source, mobj_t *target)
 
void P_DamageMobj (mobj_t *target, mobj_t *inflictor, mobj_t *source, int damage)
 

Variables

int maxammo [NUMAMMO] = {200, 50, 300, 50}
 
int clipammo [NUMAMMO] = {10, 4, 20, 1}
 

Macro Definition Documentation

◆ BONUSADD

#define BONUSADD   6

Function Documentation

◆ P_DamageMobj()

void P_DamageMobj ( mobj_t *  target,
mobj_t *  inflictor,
mobj_t *  source,
int  damage 
)

◆ P_GiveAmmo()

boolean P_GiveAmmo ( player_t *  player,
ammotype_t  ammo,
int  num 
)

◆ P_GiveArmor()

boolean P_GiveArmor ( player_t *  player,
int  armortype 
)

◆ P_GiveBody()

boolean P_GiveBody ( player_t *  player,
int  num 
)

◆ P_GiveCard()

void P_GiveCard ( player_t *  player,
card_t  card 
)

◆ P_GivePower()

boolean P_GivePower ( player_t *  player,
int  power 
)

◆ P_GiveWeapon()

boolean P_GiveWeapon ( player_t *  player,
weapontype_t  weapon,
boolean  dropped 
)

◆ P_KillMobj()

void P_KillMobj ( mobj_t *  source,
mobj_t *  target 
)

◆ P_TouchSpecialThing()

void P_TouchSpecialThing ( mobj_t *  special,
mobj_t *  toucher 
)

Variable Documentation

◆ clipammo

int clipammo[NUMAMMO] = {10, 4, 20, 1}

◆ maxammo

int maxammo[NUMAMMO] = {200, 50, 300, 50}