SBSPSS/source/triggers/tspeech.cpp

61 lines
1.0 KiB
C++
Raw Normal View History

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