SBSPSS/source/hazard/hpswitch.h

42 lines
974 B
C
Raw Normal View History

2001-05-24 01:08:26 +02:00
/*=========================================================================
hpswitch.h
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __HAZARD_HPSWITCH_H__
#define __HAZARD_HPSWITCH_H__
#ifndef __HAZARD_HAZARD_H__
#include "hazard\hazard.h"
#endif
#ifndef __PLATFORM_PTRPDOOR_H__
#include "platform\ptrpdoor.h"
#endif
class CNpcPressureSwitchHazard : public CNpcHazard
{
public:
void init();
DVECTOR const &getTriggerPos() {return( m_triggerPos );}
void linkToPlatform( CNpcTrapdoorPlatform *platform ) {m_platform = platform;}
2001-07-03 00:40:13 +02:00
bool alwaysThink() {return(true);}
2001-05-24 01:08:26 +02:00
//virtual void render();
protected:
2001-07-04 16:26:36 +02:00
void setWaypoints( sThingHazard *ThisHazard );
void collidedWith(CThing *_thisThing);
2001-05-24 01:08:26 +02:00
DVECTOR m_triggerPos;
CNpcTrapdoorPlatform *m_platform;
s16 m_rotation;
};
#endif