2001-04-20 00:07:43 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
nanemone.h
|
|
|
|
|
|
|
|
Author: CRB
|
|
|
|
Created:
|
|
|
|
Project: Spongebob
|
|
|
|
Purpose:
|
|
|
|
|
|
|
|
Copyright (c) 2000 Climax Development Ltd
|
|
|
|
|
|
|
|
===========================================================================*/
|
|
|
|
|
|
|
|
#ifndef __ENEMY_NANEMONE_H__
|
|
|
|
#define __ENEMY_NANEMONE_H__
|
|
|
|
|
|
|
|
#ifndef __ENEMY_NPC_H__
|
|
|
|
#include "enemy\npc.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class CNpcAnemoneEnemy : public CNpcEnemy
|
|
|
|
{
|
2001-04-26 23:29:44 +02:00
|
|
|
public:
|
|
|
|
virtual void postInit();
|
2001-06-04 22:02:27 +02:00
|
|
|
virtual void setHeading( s32 xPos, s32 yPos );
|
2001-04-20 00:07:43 +02:00
|
|
|
protected:
|
2001-04-24 21:03:06 +02:00
|
|
|
virtual void processEnemyCollision( CThing *thisThing );
|
2001-04-20 00:07:43 +02:00
|
|
|
virtual bool processSensor();
|
2001-05-16 21:04:40 +02:00
|
|
|
|
|
|
|
s32 m_fireHeading;
|
2001-04-20 00:07:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class CNpcAnemone1Enemy : public CNpcAnemoneEnemy
|
|
|
|
{
|
2001-04-20 16:48:15 +02:00
|
|
|
protected:
|
|
|
|
virtual void processClose( int _frames );
|
2001-04-20 00:07:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class CNpcAnemone2Enemy : public CNpcAnemoneEnemy
|
|
|
|
{
|
2001-04-20 22:22:16 +02:00
|
|
|
public:
|
|
|
|
virtual void postInit();
|
2001-04-26 23:29:44 +02:00
|
|
|
virtual void shutdown();
|
2001-05-03 22:47:20 +02:00
|
|
|
virtual void render();
|
2001-05-10 23:30:17 +02:00
|
|
|
virtual void processShot( int _frames );
|
2001-04-20 16:48:15 +02:00
|
|
|
protected:
|
|
|
|
virtual void processClose( int _frames );
|
2001-05-03 22:47:20 +02:00
|
|
|
virtual void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
|
|
|
|
|
|
|
|
u16 m_scaleX, m_scaleY;
|
2001-05-10 23:30:17 +02:00
|
|
|
|
2001-05-14 23:30:37 +02:00
|
|
|
u8 m_radius;
|
|
|
|
|
2001-05-10 23:30:17 +02:00
|
|
|
enum
|
|
|
|
{
|
2001-05-14 23:42:22 +02:00
|
|
|
SPIKE_RADIUS = 15,
|
2001-05-17 18:32:51 +02:00
|
|
|
SPIKE_DIST = 5,
|
2001-05-10 23:30:17 +02:00
|
|
|
};
|
2001-04-20 00:07:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class CNpcAnemone3Enemy : public CNpcAnemoneEnemy
|
|
|
|
{
|
2001-04-20 16:48:15 +02:00
|
|
|
protected:
|
|
|
|
virtual void processClose( int _frames );
|
2001-04-20 00:07:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|