This commit is contained in:
parent
7f0b5ae662
commit
ec8ff7ed5b
4 changed files with 374 additions and 0 deletions
41
source/hazard/hpswitch.h
Normal file
41
source/hazard/hpswitch.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*=========================================================================
|
||||
|
||||
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;}
|
||||
//virtual void render();
|
||||
protected:
|
||||
virtual void setWaypoints( sThingHazard *ThisHazard );
|
||||
virtual void collidedWith(CThing *_thisThing);
|
||||
|
||||
DVECTOR m_triggerPos;
|
||||
CNpcTrapdoorPlatform *m_platform;
|
||||
s16 m_rotation;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue