SBSPSS/source/enemy/nclam.h
Charles 6c1bb7ecec
2001-07-23 14:16:26 +00:00

61 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__
#ifndef __ENEMY_NPC_H__
#include "enemy\npc.h"
#endif
class CNpcClamEnemy : public CNpcEnemy
{
public:
u8 canCollideWithEnemy() {return( false );}
protected:
void processUserCollision( CThing *thisThing );
void processEnemyCollision( CThing *thisThing );
bool processSensor();
};
class CNpcJumpingClamEnemy : public CNpcClamEnemy
{
public:
void postInit();
protected:
void processClose( int _frames );
void setupWaypoints( sThingActor *ThisActor );
s32 m_maxExtension;
};
class CNpcStaticClamEnemy : public CNpcClamEnemy
{
public:
void postInit();
void think( int _frames );
u8 hasBeenAttacked() {return( false );}
CRECT const *getThinkBBox() {return( CThing::getThinkBBox() );}
void stoodOn();
protected:
s32 getFrameShift( int _frames );
void collidedWith(CThing *_thisThing);
void processMovement( int _frames );
//void processClose( int _frames );
void processCollision();
void processAnimFrames( int _frames );
s32 m_isStunned;
};
#endif