diff --git a/source/triggers/tcamlock.cpp b/source/triggers/tcamlock.cpp new file mode 100644 index 000000000..63bd14bfa --- /dev/null +++ b/source/triggers/tcamlock.cpp @@ -0,0 +1,62 @@ +/*========================================================================= + + tcamlock.cpp + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "triggers\tcamlock.h" + +#ifndef __PLAYER_PLAYER_H__ +#include "player\player.h" +#endif + + +/* Std Lib + ------- */ + +/* Data + ---- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +/*---------------------------------------------------------------------- + Function Prototypes + ------------------- */ + +/*---------------------------------------------------------------------- + Vars + ---- */ + + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CCameraLockTrigger::collidedWith(CThing *_thisThing) +{ + ASSERT(_thisThing->getThingType()==TYPE_PLAYER); + +// ((CPlayer*)_thisThing)->teleportTo(TargetPos.vx+8,TargetPos.vy+16); +} + +/*=========================================================================== +end */ diff --git a/source/triggers/tcamlock.h b/source/triggers/tcamlock.h new file mode 100644 index 000000000..a164ed3a6 --- /dev/null +++ b/source/triggers/tcamlock.h @@ -0,0 +1,57 @@ +/*========================================================================= + + tcamlock.h + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __TRIGGERS_TCAMLOCK_H__ +#define __TRIGGERS_TCAMLOCK_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#ifndef __THING_THING_H__ +#include "thing/thing.h" +#endif + + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class CCameraLockTrigger : public CTriggerThing +{ +protected: + virtual void collidedWith(CThing *_thisThing); + +}; + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif /* __TRIGGERS_TCAMLOCK_H__ */ + +/*=========================================================================== + end */