diff --git a/source/triggers/tsecret.cpp b/source/triggers/tsecret.cpp new file mode 100644 index 000000000..8a58bb293 --- /dev/null +++ b/source/triggers/tsecret.cpp @@ -0,0 +1,69 @@ +/*========================================================================= + + tsecret.cpp + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "triggers\trigger.h" +#include "triggers\tsecret.h" + + +/* Std Lib + ------- */ + +/* Data + ---- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +/*---------------------------------------------------------------------- + Function Prototypes + ------------------- */ + +/*---------------------------------------------------------------------- + Vars + ---- */ + + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CSecretAreaTrigger::collidedWith(CThing *_thisThing) +{ + switch( _thisThing->getThingType() ) + { + case TYPE_PLAYER: + { + CSoundMediator::play + shutdown(); + delete this; + break; + } + + default: + break; + } +} + +/*=========================================================================== +end */ diff --git a/source/triggers/tsecret.h b/source/triggers/tsecret.h new file mode 100644 index 000000000..c36edaf06 --- /dev/null +++ b/source/triggers/tsecret.h @@ -0,0 +1,57 @@ +/*========================================================================= + + tboss.h + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __TRIGGERS_TBOSS_H__ +#define __TRIGGERS_TBOSS_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#ifndef __THING_THING_H__ +#include "thing/thing.h" +#endif + + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class CBossArenaTrigger : public CTrigger +{ +protected: + virtual void collidedWith(CThing *_thisThing); + +}; + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif /* __TRIGGERS_TBOSS_H__ */ + +/*=========================================================================== + end */