This commit is contained in:
parent
54d233ced0
commit
49a5101217
4 changed files with 14 additions and 1 deletions
Binary file not shown.
Binary file not shown.
|
@ -69,7 +69,19 @@ void CGaryStopTrigger::init()
|
||||||
CTrigger::init();
|
CTrigger::init();
|
||||||
|
|
||||||
m_dropped = false;
|
m_dropped = false;
|
||||||
Pos.vx += 8;
|
}
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------
|
||||||
|
Function:
|
||||||
|
Purpose:
|
||||||
|
Params:
|
||||||
|
Returns:
|
||||||
|
---------------------------------------------------------------------- */
|
||||||
|
void CGaryStopTrigger::setPositionAndSize(int _x,int _y,int _w,int _h)
|
||||||
|
{
|
||||||
|
Pos.vx=_x+(_w/2) - 8;
|
||||||
|
Pos.vy=_y+(_h/2);
|
||||||
|
setCollisionSize(4,_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
|
|
|
@ -38,6 +38,7 @@ class CGaryStopTrigger : public CTrigger
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void init();
|
void init();
|
||||||
|
void setPositionAndSize(int _x,int _y,int _w,int _h);
|
||||||
bool alwaysThink() {return(true);}
|
bool alwaysThink() {return(true);}
|
||||||
protected:
|
protected:
|
||||||
void collidedWith(CThing *_thisThing);
|
void collidedWith(CThing *_thisThing);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue