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-05-03 15:11:45 +02:00
|
|
|
virtual int getFrameCount() {return( FRM_SQUIDDART_SWIM0004 - FRM_SQUIDDART_SWIM0001 + 1 );}
|
2001-04-30 21:57:49 +02:00
|
|
|
virtual u8 canCollideWithEnemy() {return( false );}
|
2001-05-05 00:34:23 +02:00
|
|
|
virtual void fireAsProjectile( s16 heading );
|
2001-05-15 00:59:31 +02:00
|
|
|
protected:
|
|
|
|
virtual s32 getFrameShift( int _frames );
|
2001-05-15 22:21:05 +02:00
|
|
|
virtual bool processSensor();
|
|
|
|
virtual void processClose( int _frames );
|
|
|
|
|
|
|
|
DVECTOR m_circleCentre;
|
|
|
|
s16 m_angularDistance;
|
|
|
|
s16 m_startAngle;
|
|
|
|
s32 m_circleRadius;
|
2001-04-21 18:38:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|