This commit is contained in:
parent
ec4f5f9375
commit
a8a436a7a0
6 changed files with 34 additions and 3 deletions
|
@ -875,5 +875,17 @@ void CTriggerThing::setPositionAndSize(int _x,int _y,int _w,int _h)
|
|||
setCollisionSize(_w,_h);
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
void CTriggerThing::setTargetPos(int _x,int _y)
|
||||
{
|
||||
TargetPos.vx=_x;
|
||||
TargetPos.vy=_y;
|
||||
}
|
||||
|
||||
/*===========================================================================
|
||||
end */
|
||||
|
|
|
@ -216,6 +216,8 @@ 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;
|
||||
};
|
||||
class CHazardThing : public CThing
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue