SBSPSS/source/platform/pbaloon.h

57 lines
1.2 KiB
C
Raw Normal View History

2001-05-23 23:26:00 +02:00
/*=========================================================================
pbaloon.h
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLATFORM_PBALOON_H__
#define __PLATFORM_PBALOON_H__
#ifndef __PLATFORM_PLATFORM_H__
#include "platform\platform.h"
#endif
class CBridgeBalloon
{
public:
2001-07-04 00:17:20 +02:00
void setPos( DVECTOR newPos ) {Pos = newPos;}
2001-05-23 23:26:00 +02:00
void render();
void init();
void shutdown();
2001-07-04 16:26:36 +02:00
int checkCollisionAgainst(CThing *_thisThing, int _frames);
2001-05-23 23:26:00 +02:00
protected:
DVECTOR Pos;
};
class CNpcBalloonBridgePlatform : public CNpcPlatform
{
public:
2001-07-04 00:17:20 +02:00
void postInit();
void render();
void shutdown();
2001-07-04 16:26:36 +02:00
CRECT const *getThinkBBox() {return( CThing::getThinkBBox() );}
2001-05-23 23:26:00 +02:00
protected:
2001-07-04 00:17:20 +02:00
void setWaypoints( sThingPlatform *ThisPlatform );
void processMovement( int _frames );
int checkCollisionAgainst(CThing *_thisThing, int _frames);
2001-05-23 23:26:00 +02:00
s32 m_maxExtension;
s8 m_balloonCount;
s32 m_targetHeight;
enum
{
BRIDGE_NUM_BALLOONS = 4,
};
CBridgeBalloon *m_balloon[BRIDGE_NUM_BALLOONS];
};
#endif