SBSPSS/source/enemy/ndogfish.h
2001-08-03 19:30:35 +00:00

63 lines
1.4 KiB
C++

/*=========================================================================
ndogfish.h
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __ENEMY_NDOGFISH_H__
#define __ENEMY_NDOGFISH_H__
#include "fx\fx.h"
#include "fx\fxlaser.h"
#ifndef __ENEMY_NBOSS_H__
#include "enemy\nboss.h"
#endif
class CNpcIronDogfishEnemy : public CNpcBossEnemy
{
public:
void postInit();
void render();
virtual void renderOnMapScreen( DVECTOR drawPos );
void shutdown();
protected:
void processTimer( int _frames );
bool processSensor();
void processClose( int _frames );
void processMovement( int _frames );
void processStandardIronDogfishAttack( int _frames );
void processWalkToUser( int _frames, int speed );
void processCollision();
void processAttackCollision();
void hasBeenSteamed( DVECTOR &steamPos );
void processShotDeathEnd( int _frames );
void collidedWith(CThing *_thisThing);
enum NPC_IRON_DOGFISH_STATE
{
IRON_DOGFISH_THUMP_1 = 0,
IRON_DOGFISH_LASER_EYE_1 = 1,
IRON_DOGFISH_LASER_EYE_1_WAIT,
IRON_DOGFISH_LASER_EYE_2,
IRON_DOGFISH_LASER_EYE_2_WAIT,
IRON_DOGFISH_THUMP_2,
IRON_DOGFISH_ROLL,
};
s32 m_steamTimer;
s32 m_vulnerableTimer;
s32 m_laserTimer;
CFXLaser *m_effect;
};
#endif