SBSPSS/source/enemy/nsjfish.h

48 lines
1.0 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-07-04 16:26:36 +02:00
virtual void render();
2001-07-04 00:17:20 +02:00
int getFrameCount() {return( FRM_JELLYFISH1_SWIM7 - FRM_JELLYFISH1_SWIM1 + 1 );}
u8 canCollideWithEnemy() {return( false );}
CRECT const *getThinkBBox() {return( CThing::getThinkBBox() );}
2001-04-19 22:05:09 +02:00
protected:
2001-07-04 16:26:36 +02:00
virtual bool processSensor();
2001-07-04 00:17:20 +02:00
void processClose( int _frames );
void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
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