This commit is contained in:
Paul 2001-04-17 20:09:33 +00:00
parent b8ab5fb31e
commit 2145a8d6c7
9 changed files with 96 additions and 37 deletions

View file

@ -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 */

View file

@ -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);

View file

@ -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);
}
/*===========================================================================