SBSPSS/source/enemy/nsjfish.h
Charles 7478d3483b
2001-07-04 14:26:36 +00:00

48 lines
1.0 KiB
C++

/*=========================================================================
nsjfish.h
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __ENEMY_NSJFISH_H__
#define __ENEMY_NSJFISH_H__
#ifndef __ENEMY_NPC_H__
#include "enemy\npc.h"
#endif
#ifndef __SPR_SPRITES_H__
#include <sprites.h>
#endif
class CNpcSmallJellyfishEnemy : public CNpcEnemy
{
public:
virtual void postInit();
virtual void render();
int getFrameCount() {return( FRM_JELLYFISH1_SWIM7 - FRM_JELLYFISH1_SWIM1 + 1 );}
u8 canCollideWithEnemy() {return( false );}
CRECT const *getThinkBBox() {return( CThing::getThinkBBox() );}
protected:
virtual bool processSensor();
void processClose( int _frames );
void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
void fireAsProjectile( s16 heading );
enum
{
NPC_JELLYFISH_RESISTANCE = 64,
};
bool m_evadeClockwise;
};
#endif