This commit is contained in:
parent
b8ab5fb31e
commit
2145a8d6c7
9 changed files with 96 additions and 37 deletions
|
@ -87,20 +87,6 @@ void CLevelExitTrigger::render()
|
|||
}
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
void CLevelExitTrigger::setExitPosition(int _x,int _y,int _w,int _h)
|
||||
{
|
||||
Pos.vx=_x+(_w/2);
|
||||
Pos.vy=_y+(_h/2);
|
||||
setCollisionSize(_w,_h);
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
|
@ -116,6 +102,5 @@ void CLevelExitTrigger::collidedWith(CThing *_thisThing)
|
|||
#endif
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================
|
||||
end */
|
||||
|
|
|
@ -40,7 +40,6 @@ public:
|
|||
#if defined (__USER_art__) || defined (__USER_sbart__)
|
||||
virtual void render();
|
||||
#endif
|
||||
void setExitPosition(int _x,int _y,int _w,int _h);
|
||||
|
||||
protected:
|
||||
virtual void collidedWith(CThing *_thisThing);
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
#include "game\game.h"
|
||||
#endif
|
||||
|
||||
#ifndef __PLAYER_PLAYER_H__
|
||||
#include "player\player.h"
|
||||
#endif
|
||||
|
||||
|
||||
/* Std Lib
|
||||
------- */
|
||||
|
@ -54,7 +58,7 @@ void CLookTrigger::collidedWith(CThing *_thisThing)
|
|||
{
|
||||
ASSERT(_thisThing->getThingType()==TYPE_PLAYER);
|
||||
|
||||
|
||||
GameScene.getPlayer()->setLedgeLookAhead(+4);
|
||||
}
|
||||
|
||||
/*===========================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue