Debian Codegraph @

prboom2/src/p_enemy.h

raw
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 * Enemy thinking, AI.
31 * Action Pointer Functions
32 * that are associated with states/frames.
33 *
34 *-----------------------------------------------------------------------------*/
35
36 #ifndef __P_ENEMY__
37 #define __P_ENEMY__
38
39 #include "p_mobj.h"
40
41 void P_NoiseAlert (mobj_t *target, mobj_t *emmiter);
42 void P_SpawnBrainTargets(void); /* killough 3/26/98: spawn icon landings */
43 dboolean P_CheckBossDeath(mobj_t *mo);
44
45 extern struct brain_s { /* killough 3/26/98: global state of boss brain */
46 int easy, targeton;
47 } brain;
48
49 // ********************************************************************
50 // Function addresses or Code Pointers
51 // ********************************************************************
52 // These function addresses are the Code Pointers that have been
53 // modified for years by Dehacked enthusiasts. The new BEX format
54 // allows more extensive changes (see d_deh.c)
55
56 // Doesn't work with g++, needs actionf_p1
57 void A_Explode(mobj_t *);
58 void A_Pain(mobj_t *);
59 void A_PlayerScream(mobj_t *);
60 void A_Fall(mobj_t *);
61 void A_XScream(mobj_t *);
62 void A_Look(mobj_t *);
63 void A_Chase(mobj_t *);
64 void A_FaceTarget(mobj_t *);
65 void A_PosAttack(mobj_t *);
66 void A_Scream(mobj_t *);
67 void A_SPosAttack(mobj_t *);
68 void A_VileChase(mobj_t *);
69 void A_VileStart(mobj_t *);
70 void A_VileTarget(mobj_t *);
71 void A_VileAttack(mobj_t *);
72 void A_StartFire(mobj_t *);
73 void A_Fire(mobj_t *);
74 void A_FireCrackle(mobj_t *);
75 void A_Tracer(mobj_t *);
76 void A_SkelWhoosh(mobj_t *);
77 void A_SkelFist(mobj_t *);
78 void A_SkelMissile(mobj_t *);
79 void A_FatRaise(mobj_t *);
80 void A_FatAttack1(mobj_t *);
81 void A_FatAttack2(mobj_t *);
82 void A_FatAttack3(mobj_t *);
83 void A_BossDeath(mobj_t *);
84 void A_CPosAttack(mobj_t *);
85 void A_CPosRefire(mobj_t *);
86 void A_TroopAttack(mobj_t *);
87 void A_SargAttack(mobj_t *);
88 void A_HeadAttack(mobj_t *);
89 void A_BruisAttack(mobj_t *);
90 void A_SkullAttack(mobj_t *);
91 void A_Metal(mobj_t *);
92 void A_SpidRefire(mobj_t *);
93 void A_BabyMetal(mobj_t *);
94 void A_BspiAttack(mobj_t *);
95 void A_Hoof(mobj_t *);
96 void A_CyberAttack(mobj_t *);
97 void A_PainAttack(mobj_t *);
98 void A_PainDie(mobj_t *);
99 void A_KeenDie(mobj_t *);
100 void A_BrainPain(mobj_t *);
101 void A_BrainScream(mobj_t *);
102 void A_BrainDie(mobj_t *);
103 void A_BrainAwake(mobj_t *);
104 void A_BrainSpit(mobj_t *);
105 void A_SpawnSound(mobj_t *);
106 void A_SpawnFly(mobj_t *);
107 void A_BrainExplode(mobj_t *);
108 void A_Die(mobj_t *);
109 void A_Detonate(mobj_t *); /* killough 8/9/98: detonate a bomb or other device */
110 void A_Mushroom(mobj_t *); /* killough 10/98: mushroom effect */
111 void A_Spawn(mobj_t *); // killough 11/98
112 void A_Turn(mobj_t *); // killough 11/98
113 void A_Face(mobj_t *); // killough 11/98
114 void A_Scratch(mobj_t *); // killough 11/98
115 void A_PlaySound(mobj_t *); // killough 11/98
116 void A_RandomJump(mobj_t *); // killough 11/98
117 void A_LineEffect(mobj_t *); // killough 11/98
118
119 void A_BetaSkullAttack(mobj_t *); // killough 10/98: beta lost souls attacked different
120 void A_Stop(mobj_t *);
121
122 void A_SkullPop(mobj_t *);
123
124 // [XA] New mbf21 codepointers
125
126 void A_SpawnObject(mobj_t *);
127 void A_MonsterProjectile(mobj_t *);
128 void A_MonsterBulletAttack(mobj_t *);
129 void A_MonsterMeleeAttack(mobj_t *);
130 void A_RadiusDamage(mobj_t *);
131 void A_NoiseAlert(mobj_t *);
132 void A_HealChase(mobj_t *);
133 void A_SeekTracer(mobj_t *);
134 void A_FindTracer(mobj_t *);
135 void A_ClearTracer(mobj_t *);
136 void A_JumpIfHealthBelow(mobj_t *);
137 void A_JumpIfTargetInSight(mobj_t *);
138 void A_JumpIfTargetCloser(mobj_t *);
139 void A_JumpIfTracerInSight(mobj_t *);
140 void A_JumpIfTracerCloser(mobj_t *);
141 void A_JumpIfFlagsSet(mobj_t *);
142 void A_AddFlags(mobj_t *);
143 void A_RemoveFlags(mobj_t *);
144
145 // heretic
146
147 void A_UnHideThing(mobj_t * actor);
148 void P_InitMonsters(void);
149 void P_AddBossSpot(fixed_t x, fixed_t y, angle_t angle);
150 void P_Massacre(void);
151 void P_DSparilTeleport(mobj_t * actor);
152 void Heretic_A_BossDeath(mobj_t * actor);
153 dboolean Heretic_P_LookForMonsters(mobj_t * actor);
154 dboolean Raven_P_LookForPlayers(mobj_t * actor, dboolean allaround);
155
156 // hexen
157
158 void P_InitCreatureCorpseQueue(dboolean corpseScan);
159 void A_DeQueueCorpse(mobj_t * actor);
160 dboolean A_RaiseMobj(mobj_t * actor);
161 dboolean A_SinkMobj(mobj_t * actor);
162 void A_NoBlocking(mobj_t * actor);
163
164 // zdoom
165
166 dboolean P_RaiseThing(mobj_t *corpse, mobj_t *raiser);
167
168 #endif // __P_ENEMY__