This commit is contained in:
Charles 2001-05-25 16:27:06 +00:00
parent abd8dabd8e
commit f3256cfced
2 changed files with 16 additions and 0 deletions

View File

@ -709,3 +709,18 @@ void CNpcSeaSnakeEnemy::processShot( int _frames )
m_controlFunc = NPC_CONTROL_MOVEMENT; m_controlFunc = NPC_CONTROL_MOVEMENT;
} }
} }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
const CRECT *CNpcSeaSnakeEnemy::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

@ -53,6 +53,7 @@ public:
virtual void shutdown(); virtual void shutdown();
virtual void render(); virtual void render();
virtual int checkCollisionAgainst(CThing *_thisThing, int _frames); virtual int checkCollisionAgainst(CThing *_thisThing, int _frames);
virtual CRECT const *getThinkBBox();
protected: protected:
virtual bool processSensor(); virtual bool processSensor();
virtual void processClose( int _frames ); virtual void processClose( int _frames );