This commit is contained in:
parent
0227eecbe2
commit
420c3e5796
4 changed files with 32 additions and 0 deletions
|
@ -194,3 +194,18 @@ void CNpcJellyfishPlatform::render()
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
const CRECT *CNpcJellyfishPlatform::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;
|
||||
}
|
|
@ -24,6 +24,7 @@ public:
|
|||
virtual void render();
|
||||
virtual void postInit();
|
||||
virtual void think( int _frames );
|
||||
virtual CRECT const *getThinkBBox();
|
||||
protected:
|
||||
virtual void collidedWith(CThing *_thisThing);
|
||||
|
||||
|
|
|
@ -136,3 +136,18 @@ void CNpcLinearPlatform::processMovement( int _frames )
|
|||
Pos.vx += moveX;
|
||||
Pos.vy += moveY;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
const CRECT *CNpcLinearPlatform::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;
|
||||
}
|
|
@ -22,6 +22,7 @@ class CNpcLinearPlatform : public CNpcPlatform
|
|||
{
|
||||
public:
|
||||
virtual void postInit();
|
||||
virtual CRECT const *getThinkBBox();
|
||||
protected:
|
||||
virtual void processMovement( int _frames );
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue