SBSPSS/source/enemy/nclam.h
Charles 199b0ceb7c
2001-06-20 18:00:43 +00:00

54 lines
1.3 KiB
C++

/*=========================================================================
nclam.h
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __ENEMY_NCLAM_H__
#define __ENEMY_NCLAM_H__
class CNpcClamEnemy : public CNpcEnemy
{
public:
virtual u8 canCollideWithEnemy() {return( false );}
protected:
virtual void processUserCollision( CThing *thisThing );
virtual void processEnemyCollision( CThing *thisThing );
virtual bool processSensor();
};
class CNpcJumpingClamEnemy : public CNpcClamEnemy
{
public:
virtual void postInit();
protected:
virtual void processClose( int _frames );
virtual void setupWaypoints( sThingActor *ThisActor );
s32 m_maxExtension;
};
class CNpcStaticClamEnemy : public CNpcClamEnemy
{
public:
virtual void postInit();
virtual u8 hasBeenAttacked() {return( false );}
virtual CRECT const *getThinkBBox() {return( &getCollisionArea() );}
protected:
virtual s32 getFrameShift( int _frames );
virtual void collidedWith(CThing *_thisThing);
virtual void processClose( int _frames );
virtual void processCollision();
virtual void processAnimFrames( int _frames );
s32 m_isStunned;
};
#endif