2001-04-20 21:14:57 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
nfdutch.cpp
|
|
|
|
|
|
|
|
Author: CRB
|
|
|
|
Created:
|
|
|
|
Project: Spongebob
|
|
|
|
Purpose:
|
|
|
|
|
|
|
|
Copyright (c) 2000 Climax Development Ltd
|
|
|
|
|
|
|
|
===========================================================================*/
|
|
|
|
|
|
|
|
#ifndef __ENEMY_NFDUTCH_H__
|
|
|
|
#define __ENEMY_NFDUTCH_H__
|
|
|
|
|
2001-06-27 20:28:21 +02:00
|
|
|
#include "fx\fx.h"
|
|
|
|
#include "fx\fxnrgbar.h"
|
|
|
|
|
|
|
|
|
2001-04-20 21:14:57 +02:00
|
|
|
class CNpcFlyingDutchmanEnemy : public CNpcEnemy
|
|
|
|
{
|
|
|
|
public:
|
2001-06-20 21:39:00 +02:00
|
|
|
virtual void think( int _frames );
|
2001-04-20 21:14:57 +02:00
|
|
|
virtual void postInit();
|
2001-06-16 18:16:57 +02:00
|
|
|
void render();
|
|
|
|
virtual void shutdown();
|
2001-04-20 21:14:57 +02:00
|
|
|
protected:
|
|
|
|
virtual void processClose( int _frames );
|
|
|
|
virtual void processMovement( int _frames );
|
2001-06-28 22:29:14 +02:00
|
|
|
virtual void processShotRecoil( int _frames );
|
|
|
|
virtual void processShotDeathEnd( int _frames );
|
2001-06-20 21:39:00 +02:00
|
|
|
virtual void collidedWith(CThing *_thisThing);
|
2001-04-20 21:14:57 +02:00
|
|
|
|
|
|
|
enum NPC_FLYING_DUTCHMAN_STATE
|
|
|
|
{
|
|
|
|
FLYING_DUTCHMAN_ATTACK_PLAYER_1 = 0,
|
|
|
|
FLYING_DUTCHMAN_ATTACK_PLAYER_2 = 1,
|
|
|
|
FLYING_DUTCHMAN_ATTACK_PLAYER_3,
|
|
|
|
};
|
2001-05-04 00:15:13 +02:00
|
|
|
|
|
|
|
s32 m_minY, m_maxY;
|
2001-06-16 18:16:57 +02:00
|
|
|
bool m_meterOn;
|
|
|
|
u8 m_inRange;
|
|
|
|
u8 m_fireCount;
|
2001-06-20 21:39:00 +02:00
|
|
|
s32 m_invulnerableTimer;
|
2001-06-27 20:28:21 +02:00
|
|
|
CFXNRGBar *m_energyBar;
|
2001-04-20 21:14:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|