SBSPSS/source/triggers/tteleprt.cpp

73 lines
1.5 KiB
C++
Raw Normal View History

2001-05-01 23:33:51 +02:00
/*=========================================================================
tteleprt.cpp
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
/*----------------------------------------------------------------------
Includes
-------- */
2001-05-29 22:31:02 +02:00
#include "triggers\trigger.h"
2001-05-01 23:33:51 +02:00
#include "triggers\tteleprt.h"
#ifndef __PLAYER_PLAYER_H__
#include "player\player.h"
#endif
/* Std Lib
------- */
/* Data
---- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
/*----------------------------------------------------------------------
Function Prototypes
------------------- */
/*----------------------------------------------------------------------
Vars
---- */
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CTeleportTrigger::collidedWith(CThing *_thisThing)
{
2001-06-04 14:54:44 +02:00
switch( _thisThing->getThingType() )
{
case TYPE_PLAYER:
{
2001-07-26 18:16:36 +02:00
((CPlayer*)_thisThing)->clearPlatform();
2001-06-04 14:54:44 +02:00
((CPlayer*)_thisThing)->teleportTo(m_boxX1+8,m_boxY1+16);
break;
}
default:
break;
}
2001-05-01 23:33:51 +02:00
}
/*===========================================================================
end */