SBSPSS/source/enemy/nscrab.h

52 lines
1.1 KiB
C
Raw Normal View History

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-07-04 00:17:20 +02:00
void postInit();
u8 canCollideWithEnemy();
void processEnemyCollision( CThing *thisThing );
2001-04-19 22:57:12 +02:00
protected:
2001-07-04 00:17:20 +02:00
void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
bool processSensor();
void processClose( int _frames );
void processCollision();
void processMovement( int _frames );
2001-04-19 22:57:12 +02:00
void processSpiderCrabInitJumpMovement( int _frames );
2001-04-20 22:22:16 +02:00
2001-05-10 01:14:35 +02:00
s32 m_attackDist;
2001-08-02 15:48:17 +02:00
int m_jumpDelay;
2001-05-10 01:14:35 +02:00
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,
2001-08-02 15:48:17 +02:00
SPIDER_CRAB_HEIGHT = 40,
2001-05-10 01:14:35 +02:00
};
2001-04-19 22:57:12 +02:00
};
#endif