2001-04-20 21:06:19 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
nworm.h
|
|
|
|
|
|
|
|
Author: CRB
|
|
|
|
Created:
|
|
|
|
Project: Spongebob
|
|
|
|
Purpose:
|
|
|
|
|
|
|
|
Copyright (c) 2001 Climax Development Ltd
|
|
|
|
|
|
|
|
===========================================================================*/
|
|
|
|
|
|
|
|
#ifndef __ENEMY_NWORM_H__
|
|
|
|
#define __ENEMY_NWORM_H__
|
|
|
|
|
|
|
|
class CNpcParasiticWormEnemy : public CNpcEnemy
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void postInit();
|
2001-04-26 23:29:44 +02:00
|
|
|
virtual void shutdown();
|
2001-05-04 15:45:55 +02:00
|
|
|
virtual void render();
|
2001-04-20 21:06:19 +02:00
|
|
|
protected:
|
|
|
|
virtual bool processSensor();
|
|
|
|
virtual void processClose( int _frames );
|
|
|
|
virtual void processMovement( int _frames );
|
|
|
|
void resetParasiticWormHeadToTail();
|
2001-05-04 15:45:55 +02:00
|
|
|
virtual void processEnemyCollision( CThing *thisThing );
|
2001-04-20 21:06:19 +02:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2001-05-04 15:45:55 +02:00
|
|
|
NPC_PARASITIC_WORM_SPACING = 4,
|
2001-04-20 21:06:19 +02:00
|
|
|
NPC_PARASITIC_WORM_LENGTH = 10,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2001-05-04 16:18:55 +02:00
|
|
|
class CNpcParasiticWormSegment : public CNpcEnemy
|
2001-04-20 21:06:19 +02:00
|
|
|
{
|
|
|
|
public:
|
2001-05-04 15:45:55 +02:00
|
|
|
virtual void render();
|
|
|
|
virtual void think( int _frames );
|
2001-04-20 21:06:19 +02:00
|
|
|
virtual void postInit();
|
2001-05-04 15:45:55 +02:00
|
|
|
virtual void processEnemyCollision( CThing *thisThing );
|
|
|
|
virtual void setScale( u16 scale ) {m_scale = scale;}
|
|
|
|
|
|
|
|
u16 m_scale;
|
2001-04-20 21:06:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|