diff --git a/source/triggers/tgbowl.cpp b/source/triggers/tgbowl.cpp new file mode 100644 index 000000000..6ac12b991 --- /dev/null +++ b/source/triggers/tgbowl.cpp @@ -0,0 +1,72 @@ +/*========================================================================= + + tgbowl.cpp + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "triggers\trigger.h" +#include "triggers\tgbowl.h" + +#ifndef __GAME_GAME_H__ +#include "game\game.h" +#endif + + +/* Std Lib + ------- */ + +/* Data + ---- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +/*---------------------------------------------------------------------- + Function Prototypes + ------------------- */ + +/*---------------------------------------------------------------------- + Vars + ---- */ + + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CGaryBowlTrigger::collidedWith(CThing *_thisThing) +{ + switch( _thisThing->getThingType() ) + { + case TYPE_NPC: + { + CGameScene::levelFinished(); + + break; + } + + default: + break; + } +} + +/*=========================================================================== +end */ diff --git a/source/triggers/tgbowl.h b/source/triggers/tgbowl.h new file mode 100644 index 000000000..fd9ac992f --- /dev/null +++ b/source/triggers/tgbowl.h @@ -0,0 +1,56 @@ +/*========================================================================= + + tgbowl.h + + Author: Charles Blair + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __TRIGGERS_TGBOWL_H__ +#define __TRIGGERS_TGBOWL_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#ifndef __THING_THING_H__ +#include "thing/thing.h" +#endif + + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class CGaryBowlTrigger : public CTrigger +{ +protected: + virtual void collidedWith(CThing *_thisThing); +}; + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif + +/*=========================================================================== + end */