SBSPSS/source/enemy/nfdutch.h

53 lines
1.1 KiB
C
Raw Normal View History

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-30 17:39:43 +02:00
#ifndef __ENEMY_NBOSS_H__
#include "enemy\nboss.h"
#endif
2001-06-27 20:28:21 +02:00
2001-06-30 17:39:43 +02:00
class CNpcFlyingDutchmanEnemy : public CNpcBossEnemy
2001-04-20 21:14:57 +02:00
{
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-07-02 21:59:04 +02:00
virtual u8 hasBeenAttacked();
2001-04-20 21:14:57 +02:00
protected:
virtual void processClose( int _frames );
virtual void processMovement( int _frames );
2001-07-02 22:34:37 +02:00
virtual void processShotRecoil( int _frames );
2001-06-28 22:29:14 +02:00
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
u8 m_inRange;
u8 m_fireCount;
2001-06-20 21:39:00 +02:00
s32 m_invulnerableTimer;
2001-07-02 22:34:37 +02:00
u8 m_oldState;
2001-07-02 23:25:13 +02:00
s16 m_fadeVal;
u8 m_fadeDown;
2001-04-20 21:14:57 +02:00
};
#endif