SBSPSS/source/hazard/hrweight.h

62 lines
1.5 KiB
C
Raw Normal View History

2001-05-23 20:43:44 +02:00
/*=========================================================================
hrweight.h
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __HAZARD_HRWEIGHT_H__
#define __HAZARD_HRWEIGHT_H__
#ifndef __HAZARD_HAZARD_H__
#include "hazard\hazard.h"
#endif
2001-08-08 17:43:07 +02:00
class CNpcRisingWeightWheelHazard;
2001-05-23 20:43:44 +02:00
class CNpcRisingWeightHazard : public CNpcHazard
{
public:
void init();
2001-07-04 16:26:36 +02:00
void render();
2001-05-23 20:43:44 +02:00
DVECTOR const &getWheelPos() {return( m_wheelPos );}
void setTriggered() {m_triggered = true;}
2001-07-26 17:02:55 +02:00
bool alwaysThink() {return(true);}
2001-08-08 17:43:07 +02:00
void linkToWheel( CNpcRisingWeightWheelHazard *wheel ) {m_wheel = wheel;}
2001-05-23 20:43:44 +02:00
protected:
2001-07-09 21:38:58 +02:00
virtual void collidedWith(CThing *_thisThing);
2001-07-04 16:26:36 +02:00
void setWaypoints( sThingHazard *ThisHazard );
void processMovement( int _frames );
2001-05-23 20:43:44 +02:00
2001-08-08 17:43:07 +02:00
CNpcRisingWeightWheelHazard *m_wheel;
2001-05-23 20:43:44 +02:00
s32 m_maxExtension;
DVECTOR m_wheelPos;
2001-06-01 16:30:03 +02:00
DVECTOR m_pulleyPos;
2001-05-23 20:43:44 +02:00
u8 m_triggered;
};
2001-08-08 17:43:07 +02:00
class CNpcRisingWeightWheelHazard : public CNpcHazard
{
public:
void init();
DVECTOR const &getWheelPos() {return( m_wheelPos );}
void linkToWeight( CNpcRisingWeightHazard *weight ) {m_weight = weight;}
void render();
bool alwaysThink() {return(true);}
void weightDrop();
protected:
void setWaypoints( sThingHazard *ThisHazard );
void collidedWith(CThing *_thisThing);
DVECTOR m_wheelPos;
CNpcRisingWeightHazard *m_weight;
s16 m_rotation;
};
2001-05-23 20:43:44 +02:00
#endif