SBSPSS/source/triggers/tsecret.cpp

74 lines
1.5 KiB
C++
Raw Normal View History

2001-07-04 18:45:38 +02:00
/*=========================================================================
tsecret.cpp
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
/*----------------------------------------------------------------------
Includes
-------- */
#include "triggers\trigger.h"
#include "triggers\tsecret.h"
2001-07-04 20:37:17 +02:00
#ifndef __SOUND_SOUND_H__
#include "sound\sound.h"
#endif
2001-07-04 18:45:38 +02:00
/* 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:
{
2001-07-04 20:37:17 +02:00
CSoundMediator::playSfx(CSoundMediator::SFX_SECRET_AREA);
2001-07-04 18:45:38 +02:00
shutdown();
delete this;
break;
}
default:
break;
}
}
/*===========================================================================
end */