This commit is contained in:
Charles 2001-05-22 19:59:56 +00:00
parent 5298e61a8a
commit 42ff0b1392
7 changed files with 40 additions and 2 deletions

View file

@ -87,6 +87,10 @@
#include "hazard\hfirebal.h"
#endif
#ifndef __HAZARD_HRROCK_H__
#include "hazard\hrrock.h"
#endif
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -106,6 +110,7 @@ CNpcHazard::NPC_HAZARD_UNIT_TYPE CNpcHazard::mapEditConvertTable[NPC_HAZARD_TYPE
NPC_DUAL_PLATFORM_BARREL_HAZARD,
NPC_BOUNCING_BARREL_HAZARD,
NPC_FIREBALL_HAZARD,
NPC_ROLLING_ROCK_HAZARD,
};
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -202,6 +207,12 @@ CNpcHazard *CNpcHazard::Create(sThingHazard *ThisHazard)
break;
}
case NPC_ROLLING_ROCK_HAZARD:
{
hazard = new ("rolling rock hazard") CNpcRollingRockHazard;
break;
}
default:
{
hazard = NULL;

View file

@ -50,6 +50,7 @@ public:
NPC_DUAL_PLATFORM_BARREL_HAZARD,
NPC_BOUNCING_BARREL_HAZARD,
NPC_FIREBALL_HAZARD,
NPC_ROLLING_ROCK_HAZARD,
NPC_HAZARD_TYPE_MAX,
};

View file

@ -25,4 +25,19 @@ void CNpcBubblePlatform::processMovement( int _frames )
{
setToShutdown();
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
const CRECT *CNpcBubblePlatform::getThinkBBox()
{
CRECT objThinkBox = getCollisionArea();
sBBox &thinkBBox = CThingManager::getThinkBBox();
objThinkBox.x1 = thinkBBox.XMin;
objThinkBox.x2 = thinkBBox.XMax;
objThinkBox.y1 = thinkBBox.YMin;
objThinkBox.y2 = thinkBBox.YMax;
return &objThinkBox;
}

View file

@ -20,6 +20,8 @@
class CNpcBubblePlatform : public CNpcPlatform
{
public:
virtual CRECT const *getThinkBBox();
protected:
virtual void processMovement( int _frames );
};