| 1 |
/* Emacs style mode select -*- C -*- |
| 2 |
*----------------------------------------------------------------------------- |
| 3 |
* |
| 4 |
* |
| 5 |
* PrBoom: a Doom port merged with LxDoom and LSDLDoom |
| 6 |
* based on BOOM, a modified and improved DOOM engine |
| 7 |
* Copyright (C) 1999 by |
| 8 |
* id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman |
| 9 |
* Copyright (C) 1999-2000 by |
| 10 |
* Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze |
| 11 |
* Copyright 2005, 2006 by |
| 12 |
* Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko |
| 13 |
* |
| 14 |
* This program is free software; you can redistribute it and/or |
| 15 |
* modify it under the terms of the GNU General Public License |
| 16 |
* as published by the Free Software Foundation; either version 2 |
| 17 |
* of the License, or (at your option) any later version. |
| 18 |
* |
| 19 |
* This program is distributed in the hope that it will be useful, |
| 20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 |
* GNU General Public License for more details. |
| 23 |
* |
| 24 |
* You should have received a copy of the GNU General Public License |
| 25 |
* along with this program; if not, write to the Free Software |
| 26 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 27 |
* 02111-1307, USA. |
| 28 |
* |
| 29 |
* DESCRIPTION: |
| 30 |
* Thing events, and dehacked specified numbers controlling them. |
| 31 |
* |
| 32 |
*-----------------------------------------------------------------------------*/ |
| 33 |
|
| 34 |
#ifndef __P_INTER__ |
| 35 |
#define __P_INTER__ |
| 36 |
|
| 37 |
#include "d_player.h" |
| 38 |
#include "p_mobj.h" |
| 39 |
|
| 40 |
/* Ty 03/09/98 Moved to an int in p_inter.c for deh and externalization */ |
| 41 |
#define MAXHEALTH maxhealth |
| 42 |
|
| 43 |
#define BONUSADD 6 |
| 44 |
|
| 45 |
/* follow a player exlusively for 3 seconds */ |
| 46 |
#define BASETHRESHOLD (100) |
| 47 |
|
| 48 |
dboolean P_GivePower(player_t *, int); |
| 49 |
void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher); |
| 50 |
void P_DamageMobj(mobj_t *target,mobj_t *inflictor,mobj_t *source,int damage); |
| 51 |
void P_HealMobj(mobj_t *mo, int num); |
| 52 |
int P_PlayerHealthIncrease(int value); |
| 53 |
|
| 54 |
/* killough 5/2/98: moved from d_deh.c, g_game.c, m_misc.c, others: */ |
| 55 |
|
| 56 |
extern int god_health; /* Ty 03/09/98 - deh support, see also p_inter.c */ |
| 57 |
extern int idfa_armor; |
| 58 |
extern int idfa_armor_class; |
| 59 |
extern int idkfa_armor; |
| 60 |
extern int idkfa_armor_class; /* Ty - end */ |
| 61 |
/* Ty 03/13/98 - externalized initial settings for respawned player */ |
| 62 |
extern int initial_health; |
| 63 |
extern int initial_bullets; |
| 64 |
extern int maxhealth; |
| 65 |
extern int maxhealthbonus; |
| 66 |
extern int max_armor; |
| 67 |
extern int green_armor_class; |
| 68 |
extern int blue_armor_class; |
| 69 |
extern int max_soul; |
| 70 |
extern int soul_health; |
| 71 |
extern int mega_health; |
| 72 |
extern int bfgcells; |
| 73 |
extern int monsters_infight; // e6y: Dehacked support - monsters infight |
| 74 |
extern int maxammo[], clipammo[]; |
| 75 |
|
| 76 |
// heretic |
| 77 |
|
| 78 |
#define MAXCHICKENHEALTH 30 |
| 79 |
|
| 80 |
extern int GetWeaponAmmo[NUMWEAPONS]; |
| 81 |
|
| 82 |
dboolean P_GiveBody(player_t * player, int num); |
| 83 |
void P_SetMessage(player_t * player, const char *message, dboolean ultmsg); |
| 84 |
dboolean P_GiveArtifact(player_t * player, artitype_t arti, mobj_t * mo); |
| 85 |
dboolean Heretic_P_GiveWeapon(player_t * player, weapontype_t weapon); |
| 86 |
void P_SetDormantArtifact(mobj_t * arti); |
| 87 |
void P_HideSpecialThing(mobj_t * thing); |
| 88 |
dboolean P_ChickenMorphPlayer(player_t * player); |
| 89 |
dboolean P_ChickenMorph(mobj_t * target); |
| 90 |
void P_TouchWhirlwind(mobj_t * target); |
| 91 |
void P_MinotaurSlam(mobj_t * source, mobj_t * target); |
| 92 |
dboolean P_AutoUseChaosDevice(player_t * player); |
| 93 |
void P_AutoUseHealth(player_t * player, int saveHealth); |
| 94 |
|
| 95 |
// hexen |
| 96 |
|
| 97 |
#define MAXMORPHHEALTH 30 |
| 98 |
|
| 99 |
void P_SetYellowMessage(player_t * player, const char *message, dboolean ultmsg); |
| 100 |
void P_FallingDamage(player_t * player); |
| 101 |
void P_PoisonPlayer(player_t * player, mobj_t * poisoner, int poison); |
| 102 |
void P_PoisonDamage(player_t * player, mobj_t * source, int damage, dboolean playPainSound); |
| 103 |
dboolean P_GiveMana(player_t * player, manatype_t mana, int count); |
| 104 |
dboolean Hexen_P_GiveArmor(player_t *player, armortype_t armortype, int amount); |
| 105 |
dboolean P_MorphPlayer(player_t * player); |
| 106 |
|
| 107 |
#endif |