SBSPSS/source/enemy/nanemone.h

68 lines
1.3 KiB
C
Raw Normal View History

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-07-27 15:31:52 +02:00
void setHeading( s32 xPos, s32 yPos, s32 xOrig, s32 yOrig );
2001-04-20 00:07:43 +02:00
protected:
2001-07-04 16:26:36 +02:00
void processEnemyCollision( CThing *thisThing );
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:
2001-07-04 16:26:36 +02:00
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:
2001-07-04 00:17:20 +02:00
void postInit();
void shutdown();
2001-07-04 16:26:36 +02:00
void render();
2001-04-20 16:48:15 +02:00
protected:
2001-07-04 16:26:36 +02:00
void processClose( int _frames );
void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
void processShotDeathStart( int _frames );
void processShotDeathEnd( int _frames );
2001-05-03 22:47:20 +02:00
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:
2001-07-04 16:26:36 +02:00
void processClose( int _frames );
2001-04-20 00:07:43 +02:00
};
#endif