diff --git a/source/triggers/tbuttfly.cpp b/source/triggers/tbuttfly.cpp new file mode 100644 index 000000000..5186e62a7 --- /dev/null +++ b/source/triggers/tbuttfly.cpp @@ -0,0 +1,75 @@ +/*========================================================================= + + tbuttfly.cpp + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "triggers\trigger.h" + +#include "triggers\tbuttfly.h" + +#ifndef __PLAYER_PLAYER_H__ +#include "player\player.h" +#endif + +#ifndef __JELLFISH_JELLFISH_H__ +#include "jellfish\jellfish.h" +#endif + +/* Std Lib + ------- */ + +/* Data + ---- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +/*---------------------------------------------------------------------- + Function Prototypes + ------------------- */ + +/*---------------------------------------------------------------------- + Vars + ---- */ + + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CButterflyTrigger::collidedWith(CThing *_thisThing) +{ + switch( _thisThing->getThingType() ) + { + case TYPE_PLAYER: + { + CJellyfishGenerator::start(); + break; + } + + default: + break; + } +} + +/*=========================================================================== +end */ diff --git a/source/triggers/tbuttfly.h b/source/triggers/tbuttfly.h new file mode 100644 index 000000000..35424f4a5 --- /dev/null +++ b/source/triggers/tbuttfly.h @@ -0,0 +1,57 @@ +/*========================================================================= + + tbuttfly.h + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __TRIGGERS_TBUTTFLY_H__ +#define __TRIGGERS_TBUTTFLY_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#ifndef __THING_THING_H__ +#include "thing/thing.h" +#endif + + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class CButterflyTrigger : public CTrigger +{ +protected: + virtual void collidedWith(CThing *_thisThing); + +}; + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif /* __TRIGGERS_TBUTTFLY_H__ */ + +/*=========================================================================== + end */