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__
|
|
|
|
|
2001-07-23 16:16:26 +02:00
|
|
|
#ifndef __ENEMY_NPC_H__
|
|
|
|
#include "enemy\npc.h"
|
|
|
|
#endif
|
|
|
|
|
2001-04-20 14:03:03 +02:00
|
|
|
class CNpcClamEnemy : public CNpcEnemy
|
|
|
|
{
|
2001-05-16 16:35:36 +02:00
|
|
|
public:
|
2001-07-04 00:17:20 +02:00
|
|
|
u8 canCollideWithEnemy() {return( false );}
|
2001-04-20 14:03:03 +02:00
|
|
|
protected:
|
2001-07-04 16:26:36 +02:00
|
|
|
void processUserCollision( CThing *thisThing );
|
|
|
|
void processEnemyCollision( CThing *thisThing );
|
|
|
|
bool processSensor();
|
2001-04-20 14:03:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class CNpcJumpingClamEnemy : public CNpcClamEnemy
|
|
|
|
{
|
2001-04-26 17:20:21 +02:00
|
|
|
public:
|
2001-07-04 00:17:20 +02:00
|
|
|
void postInit();
|
2001-04-20 14:03:03 +02:00
|
|
|
protected:
|
2001-07-04 16:26:36 +02:00
|
|
|
void processClose( int _frames );
|
|
|
|
void setupWaypoints( sThingActor *ThisActor );
|
2001-05-22 17:55:04 +02:00
|
|
|
|
|
|
|
s32 m_maxExtension;
|
2001-04-20 14:03:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class CNpcStaticClamEnemy : public CNpcClamEnemy
|
|
|
|
{
|
2001-04-25 17:10:26 +02:00
|
|
|
public:
|
2001-07-04 00:17:20 +02:00
|
|
|
void postInit();
|
2001-07-23 16:16:26 +02:00
|
|
|
void think( int _frames );
|
2001-07-04 16:26:36 +02:00
|
|
|
u8 hasBeenAttacked() {return( false );}
|
|
|
|
CRECT const *getThinkBBox() {return( CThing::getThinkBBox() );}
|
2001-07-23 16:16:26 +02:00
|
|
|
void stoodOn();
|
2001-04-20 14:03:03 +02:00
|
|
|
protected:
|
2001-07-04 16:26:36 +02:00
|
|
|
s32 getFrameShift( int _frames );
|
|
|
|
void collidedWith(CThing *_thisThing);
|
2001-07-23 16:16:26 +02:00
|
|
|
void processMovement( int _frames );
|
|
|
|
//void processClose( int _frames );
|
2001-07-04 16:26:36 +02:00
|
|
|
void processCollision();
|
|
|
|
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
|