From 3f907383bf73d383aecd88a1f4e08a85829b2b7a Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 4 Jul 2001 16:45:38 +0000 Subject: [PATCH] --- source/triggers/tsecret.cpp | 69 +++++++++++++++++++++++++++++++++++++ source/triggers/tsecret.h | 57 ++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 source/triggers/tsecret.cpp create mode 100644 source/triggers/tsecret.h 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 */