SBSPSS/source/enemy/nsjfish.h

48 lines
1.1 KiB
C
Raw Normal View History

2001-04-19 22:05:09 +02:00
/*=========================================================================
2001-04-20 00:09:59 +02:00
nsjfish.h
2001-04-19 22:05:09 +02:00
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __ENEMY_NSJFISH_H__
2001-04-20 00:09:59 +02:00
#define __ENEMY_NSJFISH_H__
2001-04-19 22:05:09 +02:00
#ifndef __ENEMY_NPC_H__
#include "enemy\npc.h"
#endif
2001-05-03 15:11:45 +02:00
#ifndef __SPR_SPRITES_H__
#include <sprites.h>
#endif
2001-04-19 22:05:09 +02:00
class CNpcSmallJellyfishEnemy : public CNpcEnemy
{
public:
2001-05-17 23:07:43 +02:00
virtual void postInit();
2001-05-10 16:09:06 +02:00
virtual void render();
2001-05-14 21:48:27 +02:00
virtual int getFrameCount() {return( FRM_JELLYFISH1_SWIM7 - FRM_JELLYFISH1_SWIM1 + 1 );}
2001-04-30 21:57:49 +02:00
virtual u8 canCollideWithEnemy() {return( false );}
2001-06-19 22:07:57 +02:00
virtual CRECT const *getThinkBBox() {return( &getCollisionArea() );}
2001-04-19 22:05:09 +02:00
protected:
virtual bool processSensor();
virtual void processClose( int _frames );
virtual void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
2001-05-05 00:34:23 +02:00
virtual void fireAsProjectile( s16 heading );
2001-04-20 22:22:16 +02:00
enum
{
NPC_JELLYFISH_RESISTANCE = 64,
};
2001-05-16 21:04:40 +02:00
bool m_evadeClockwise;
2001-04-19 22:05:09 +02:00
};
#endif