2001-04-19 22:57:12 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
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:
|
2001-04-20 22:22:16 +02:00
|
|
|
virtual void postInit();
|
2001-04-26 23:29:44 +02:00
|
|
|
virtual u8 canCollideWithEnemy();
|
|
|
|
virtual void processEnemyCollision( CThing *thisThing );
|
2001-04-19 22:57:12 +02:00
|
|
|
protected:
|
2001-04-26 17:20:21 +02:00
|
|
|
virtual void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
|
2001-04-19 22:57:12 +02:00
|
|
|
virtual bool processSensor();
|
|
|
|
virtual void processClose( int _frames );
|
|
|
|
virtual void processCollision();
|
|
|
|
virtual void processMovement( int _frames );
|
|
|
|
void processSpiderCrabInitJumpMovement( int _frames );
|
2001-04-20 22:22:16 +02:00
|
|
|
|
2001-05-10 01:14:35 +02:00
|
|
|
s32 m_attackDist;
|
|
|
|
|
2001-04-20 22:22:16 +02:00
|
|
|
enum NPC_SPIDER_CRAB_STATE
|
|
|
|
{
|
|
|
|
SPIDER_CRAB_DEFAULT = 0,
|
|
|
|
SPIDER_CRAB_INIT_JUMP = 1,
|
|
|
|
};
|
2001-05-10 01:14:35 +02:00
|
|
|
|
|
|
|
enum NPC_SPIDER_CRAB_CONSTANTS
|
|
|
|
{
|
|
|
|
SPIDER_CRAB_EXTENSION = 64,
|
|
|
|
SPIDER_CRAB_HEIGHT = 50,
|
|
|
|
};
|
2001-04-19 22:57:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|