This commit is contained in:
Paul 2001-05-04 01:35:52 +00:00
parent 3e85e3fb21
commit 0700ee58fe
11 changed files with 69 additions and 22 deletions

View file

@ -881,10 +881,12 @@ void CTriggerThing::setPositionAndSize(int _x,int _y,int _w,int _h)
Params:
Returns:
---------------------------------------------------------------------- */
void CTriggerThing::setTargetPos(int _x,int _y)
void CTriggerThing::setTargetBox(int _x,int _y,int _w,int _h)
{
TargetPos.vx=_x;
TargetPos.vy=_y;
m_boxX1=_x;
m_boxY1=_y;
m_boxX2=_x+_w;
m_boxY2=_y+_h;
}
/*===========================================================================

View file

@ -216,8 +216,9 @@ class CTriggerThing : public CThing
public:
virtual TYPE getThingType() {return TYPE_TRIGGER;}
virtual void setPositionAndSize(int _x,int _y,int _w,int _h); // Wonder if this might be better in CThing? (pkg)
virtual void setTargetPos(int _x,int _y); // Wonder if this might be better in CThing? (pkg)
DVECTOR TargetPos;
virtual void setTargetBox(int _x,int _y,int _w,int _h); // Wonder if this might be better in CThing? (pkg)
protected:
int m_boxX1,m_boxY1,m_boxX2,m_boxY2;
};
class CHazardThing : public CThing
{