2001-04-21 18:38:15 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
nsdart.h
|
|
|
|
|
|
|
|
Author: CRB
|
|
|
|
Created:
|
|
|
|
Project: Spongebob
|
|
|
|
Purpose:
|
|
|
|
|
|
|
|
Copyright (c) 2001 Climax Development Ltd
|
|
|
|
|
|
|
|
===========================================================================*/
|
|
|
|
|
|
|
|
#ifndef __ENEMY_NSDART_H__
|
|
|
|
#define __ENEMY_NSDART_H__
|
|
|
|
|
2001-05-03 15:11:45 +02:00
|
|
|
#ifndef __SPR_SPRITES_H__
|
|
|
|
#include <sprites.h>
|
|
|
|
#endif
|
|
|
|
|
2001-04-21 18:38:15 +02:00
|
|
|
class CNpcSquidDartEnemy : public CNpcEnemy
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void render();
|
2001-07-04 00:17:20 +02:00
|
|
|
int getFrameCount() {return( FRM_SQUIDDART_SWIM0004 - FRM_SQUIDDART_SWIM0001 + 1 );}
|
|
|
|
u8 canCollideWithEnemy() {return( false );}
|
|
|
|
void fireAsProjectile( s16 heading );
|
2001-05-15 00:59:31 +02:00
|
|
|
protected:
|
2001-07-04 00:17:20 +02:00
|
|
|
s32 getFrameShift( int _frames );
|
|
|
|
bool processSensor();
|
|
|
|
void processClose( int _frames );
|
2001-05-15 22:21:05 +02:00
|
|
|
|
2001-05-25 19:09:51 +02:00
|
|
|
s32 m_xPos;
|
|
|
|
u8 m_attack;
|
2001-04-21 18:38:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|