2001-04-20 14:03:03 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
2001-04-20 16:48:15 +02:00
|
|
|
nclam.h
|
2001-04-20 14:03:03 +02:00
|
|
|
|
|
|
|
Author: CRB
|
|
|
|
Created:
|
|
|
|
Project: Spongebob
|
|
|
|
Purpose:
|
|
|
|
|
|
|
|
Copyright (c) 2000 Climax Development Ltd
|
|
|
|
|
|
|
|
===========================================================================*/
|
|
|
|
|
|
|
|
#ifndef __ENEMY_NCLAM_H__
|
|
|
|
#define __ENEMY_NCLAM_H__
|
|
|
|
|
|
|
|
class CNpcClamEnemy : public CNpcEnemy
|
|
|
|
{
|
2001-05-16 16:35:36 +02:00
|
|
|
public:
|
|
|
|
virtual u8 canCollideWithEnemy() {return( false );}
|
2001-04-20 14:03:03 +02:00
|
|
|
protected:
|
2001-05-14 17:19:07 +02:00
|
|
|
virtual void processUserCollision( CThing *thisThing );
|
2001-04-24 21:03:06 +02:00
|
|
|
virtual void processEnemyCollision( CThing *thisThing );
|
2001-04-20 14:03:03 +02:00
|
|
|
virtual bool processSensor();
|
|
|
|
};
|
|
|
|
|
|
|
|
class CNpcJumpingClamEnemy : public CNpcClamEnemy
|
|
|
|
{
|
2001-04-26 17:20:21 +02:00
|
|
|
public:
|
|
|
|
virtual void postInit();
|
2001-04-20 14:03:03 +02:00
|
|
|
protected:
|
|
|
|
virtual void processClose( int _frames );
|
2001-05-22 17:55:04 +02:00
|
|
|
virtual void setupWaypoints( sThingActor *ThisActor );
|
|
|
|
|
|
|
|
s32 m_maxExtension;
|
2001-04-20 14:03:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class CNpcStaticClamEnemy : public CNpcClamEnemy
|
|
|
|
{
|
2001-04-25 17:10:26 +02:00
|
|
|
public:
|
|
|
|
virtual void postInit();
|
2001-05-16 16:35:36 +02:00
|
|
|
virtual u8 hasBeenAttacked() {return( false );}
|
2001-06-25 23:10:18 +02:00
|
|
|
virtual CRECT const *getThinkBBox() {return( CThing::getThinkBBox() );}
|
2001-04-20 14:03:03 +02:00
|
|
|
protected:
|
2001-05-21 21:18:35 +02:00
|
|
|
virtual s32 getFrameShift( int _frames );
|
2001-04-25 17:10:26 +02:00
|
|
|
virtual void collidedWith(CThing *_thisThing);
|
2001-04-20 14:03:03 +02:00
|
|
|
virtual void processClose( int _frames );
|
2001-05-21 21:18:35 +02:00
|
|
|
virtual void processCollision();
|
2001-05-21 23:16:42 +02:00
|
|
|
virtual void processAnimFrames( int _frames );
|
2001-04-25 17:10:26 +02:00
|
|
|
|
2001-05-22 20:11:57 +02:00
|
|
|
s32 m_isStunned;
|
2001-04-20 14:03:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|