mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-14 22:21:32 +00:00
760f70d3f1
so that all files are included by a central one instead of compiling each one separately. This speeds up the compilation process by 25% when doing a complete rebuild in Visual C. - Cleaned up more header dependencies. SVN r1226 (trunk)
37 lines
740 B
C++
37 lines
740 B
C++
/*
|
|
#include "actor.h"
|
|
#include "info.h"
|
|
#include "p_local.h"
|
|
#include "p_spec.h"
|
|
#include "p_enemy.h"
|
|
#include "a_action.h"
|
|
#include "thingdef/thingdef.h"
|
|
*/
|
|
|
|
//
|
|
// A_KeenDie
|
|
// DOOM II special, map 32.
|
|
// Uses special tag 666.
|
|
//
|
|
DEFINE_ACTION_FUNCTION(AActor, A_KeenDie)
|
|
{
|
|
CALL_ACTION(A_NoBlocking, self);
|
|
|
|
// scan the remaining thinkers to see if all Keens are dead
|
|
AActor *other;
|
|
TThinkerIterator<AActor> iterator;
|
|
const PClass *matchClass = self->GetClass ();
|
|
|
|
while ( (other = iterator.Next ()) )
|
|
{
|
|
if (other != self && other->health > 0 && other->IsA (matchClass))
|
|
{
|
|
// other Keen not dead
|
|
return;
|
|
}
|
|
}
|
|
|
|
EV_DoDoor (DDoor::doorOpen, NULL, NULL, 666, 2*FRACUNIT, 0, 0, 0);
|
|
}
|
|
|
|
|