SBSPSS/source/hazard/hrweight.h

40 lines
917 B
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
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-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
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;
};
#endif