2001-04-24 15:46:16 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
hfalling.h
|
|
|
|
|
|
|
|
Author: CRB
|
|
|
|
Created:
|
|
|
|
Project: Spongebob
|
|
|
|
Purpose:
|
|
|
|
|
|
|
|
Copyright (c) 2001 Climax Development Ltd
|
|
|
|
|
|
|
|
===========================================================================*/
|
|
|
|
|
|
|
|
#ifndef __HAZARD_HFALLING_H__
|
|
|
|
#define __HAZARD_HFALLING_H__
|
|
|
|
|
|
|
|
#ifndef __HAZARD_HAZARD_H__
|
|
|
|
#include "hazard\hazard.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class CNpcFallingHazard : public CNpcHazard
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void init();
|
2001-05-25 21:15:18 +02:00
|
|
|
//virtual CRECT const *getThinkBBox();
|
2001-05-14 23:08:03 +02:00
|
|
|
virtual void setWaypoints( sThingHazard *ThisHazard );
|
2001-05-25 21:30:37 +02:00
|
|
|
void render();
|
2001-04-24 15:46:16 +02:00
|
|
|
protected:
|
|
|
|
void processMovement( int _frames );
|
|
|
|
void processTimer( int _frames );
|
2001-05-12 19:24:44 +02:00
|
|
|
virtual void collidedWith(CThing *_thisThing);
|
2001-04-24 15:46:16 +02:00
|
|
|
|
|
|
|
s32 m_movementTimer;
|
2001-05-10 23:30:17 +02:00
|
|
|
u8 m_bounceFinish;
|
2001-05-25 21:30:37 +02:00
|
|
|
u8 m_spinFinish;
|
2001-05-10 23:30:17 +02:00
|
|
|
s32 m_speed;
|
|
|
|
u8 m_bounceDir;
|
2001-05-14 22:07:52 +02:00
|
|
|
DVECTOR m_bouncePos;
|
2001-05-25 21:30:37 +02:00
|
|
|
s16 m_rotation;
|
2001-05-30 16:49:38 +02:00
|
|
|
s16 m_scale;
|
|
|
|
u8 m_growing;
|
2001-04-24 15:46:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|