86 lines
1.7 KiB
C++
86 lines
1.7 KiB
C++
|
/*=========================================================================
|
||
|
|
||
|
tggleft.cpp
|
||
|
|
||
|
Author: CRB
|
||
|
Created:
|
||
|
Project: Spongebob
|
||
|
Purpose:
|
||
|
|
||
|
Copyright (c) 2001 Climax Development Ltd
|
||
|
|
||
|
===========================================================================*/
|
||
|
|
||
|
/*----------------------------------------------------------------------
|
||
|
Includes
|
||
|
-------- */
|
||
|
|
||
|
#include "triggers\trigger.h"
|
||
|
#include "triggers\tggleft.h"
|
||
|
|
||
|
#ifndef __GAME_GAME_H__
|
||
|
#include "game\game.h"
|
||
|
#endif
|
||
|
|
||
|
#ifndef __FRIEND_FRIEND_H__
|
||
|
#include "friend\friend.h"
|
||
|
#endif
|
||
|
|
||
|
#ifndef __FRIEND_FGARY_H__
|
||
|
#include "friend\fgary.h"
|
||
|
#endif
|
||
|
|
||
|
|
||
|
/* Std Lib
|
||
|
------- */
|
||
|
|
||
|
/* Data
|
||
|
---- */
|
||
|
|
||
|
/*----------------------------------------------------------------------
|
||
|
Tyepdefs && Defines
|
||
|
------------------- */
|
||
|
|
||
|
/*----------------------------------------------------------------------
|
||
|
Structure defintions
|
||
|
-------------------- */
|
||
|
|
||
|
/*----------------------------------------------------------------------
|
||
|
Function Prototypes
|
||
|
------------------- */
|
||
|
|
||
|
/*----------------------------------------------------------------------
|
||
|
Vars
|
||
|
---- */
|
||
|
|
||
|
|
||
|
/*----------------------------------------------------------------------
|
||
|
Function:
|
||
|
Purpose:
|
||
|
Params:
|
||
|
Returns:
|
||
|
---------------------------------------------------------------------- */
|
||
|
void CGaryGoLeftTrigger::collidedWith(CThing *_thisThing)
|
||
|
{
|
||
|
switch( _thisThing->getThingType() )
|
||
|
{
|
||
|
case TYPE_NPC:
|
||
|
{
|
||
|
if ( _thisThing->getThingSubType() == CNpcFriend::NPC_FRIEND_GARY )
|
||
|
{
|
||
|
CNpcGaryFriend *gary = (CNpcGaryFriend *) _thisThing;
|
||
|
|
||
|
gary->startLeft();
|
||
|
}
|
||
|
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/*===========================================================================
|
||
|
end */
|