SBSPSS/source/triggers/tspeech.cpp
Charles 438ac6c5aa
2001-07-13 19:38:13 +00:00

61 lines
1.0 KiB
C++

/*=========================================================================
tspeech.h
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __TRIGGERS_TSPEECH_H__
#include "triggers\tspeech.h"
#endif
#ifndef __SOUND_SOUND_H__
#include "sound\sound.h"
#endif
int CSpeechTrigger::m_speechRef[9] =
{
SPEECH_151,
SPEECH_152,
SPEECH_153,
SPEECH_154,
SPEECH_155,
SPEECH_156,
SPEECH_157,
SPEECH_158,
SPEECH_159,
};
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CSpeechTrigger::collidedWith(CThing *_thisThing)
{
switch( _thisThing->getThingType() )
{
case TYPE_PLAYER:
{
CSoundMediator::playSpeech( m_speechRef[m_data] );
setToShutdown();
break;
}
default:
break;
}
}
/*===========================================================================
end */