SBSPSS/source/enemy/nscrab.h
Charles 57de623103
2001-05-09 23:14:35 +00:00

51 lines
1.1 KiB
C++

/*=========================================================================
nscrab.h
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __ENEMY_NSCRAB_H__
#define __ENEMY_NSCRAB_H__
#ifndef __ENEMY_NPC_H__
#include "enemy\npc.h"
#endif
class CNpcSpiderCrabEnemy : public CNpcEnemy
{
public:
virtual void postInit();
virtual u8 canCollideWithEnemy();
virtual void processEnemyCollision( CThing *thisThing );
protected:
virtual void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
virtual bool processSensor();
virtual void processClose( int _frames );
virtual void processCollision();
virtual void processMovement( int _frames );
void processSpiderCrabInitJumpMovement( int _frames );
s32 m_attackDist;
enum NPC_SPIDER_CRAB_STATE
{
SPIDER_CRAB_DEFAULT = 0,
SPIDER_CRAB_INIT_JUMP = 1,
};
enum NPC_SPIDER_CRAB_CONSTANTS
{
SPIDER_CRAB_EXTENSION = 64,
SPIDER_CRAB_HEIGHT = 50,
};
};
#endif