SBSPSS/source/triggers/tboss.cpp

77 lines
1.5 KiB
C++
Raw Normal View History

2001-06-25 23:17:41 +02:00
/*=========================================================================
tboss.cpp
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
/*----------------------------------------------------------------------
Includes
-------- */
#include "triggers\trigger.h"
#include "triggers\tboss.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 CBossArenaTrigger::collidedWith(CThing *_thisThing)
{
2001-07-16 16:26:15 +02:00
if ( !GameScene.getBossHasBeenKilled() )
2001-06-25 23:17:41 +02:00
{
2001-07-16 16:26:15 +02:00
switch( _thisThing->getThingType() )
2001-06-25 23:17:41 +02:00
{
2001-07-16 16:26:15 +02:00
case TYPE_PLAYER:
{
2001-08-16 21:20:30 +02:00
GameScene.hitBossArenaTrigger();
2001-07-16 16:26:15 +02:00
shutdown();
delete this;
break;
}
default:
break;
2001-06-25 23:17:41 +02:00
}
}
}
/*===========================================================================
end */