2001-05-02 21:44:56 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
pdual.h
|
|
|
|
|
|
|
|
Author: CRB
|
|
|
|
Created:
|
|
|
|
Project: Spongebob
|
|
|
|
Purpose:
|
|
|
|
|
|
|
|
Copyright (c) 2001 Climax Development Ltd
|
|
|
|
|
|
|
|
===========================================================================*/
|
|
|
|
|
|
|
|
#ifndef __PLATFORM_PDUAL_H__
|
|
|
|
#define __PLATFORM_PDUAL_H__
|
|
|
|
|
|
|
|
#ifndef __PLATFORM_PLATFORM_H__
|
|
|
|
#include "platform\platform.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class CNpcDualPlatform : public CNpcPlatform
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void setMaster( u8 isMaster );
|
|
|
|
void setOtherPlatform( CNpcDualPlatform *other );
|
|
|
|
void setMovement( DVECTOR move );
|
2001-07-04 16:26:36 +02:00
|
|
|
u8 canDrop();
|
2001-05-09 17:00:18 +02:00
|
|
|
void setLineBase( DVECTOR base ) {m_lineBase = base;}
|
|
|
|
DVECTOR getLineBase() {return( m_lineBase );}
|
2001-07-04 16:26:36 +02:00
|
|
|
void render();
|
2001-06-25 14:19:58 +02:00
|
|
|
void setThinkArea( CRECT &newArea );
|
2001-05-02 21:44:56 +02:00
|
|
|
protected:
|
2001-07-04 16:26:36 +02:00
|
|
|
void setWaypoints( sThingPlatform *ThisPlatform );
|
|
|
|
void processMovement( int _frames );
|
|
|
|
void collidedWith(CThing *_thisThing);
|
2001-05-02 21:44:56 +02:00
|
|
|
|
|
|
|
u8 m_isMaster;
|
|
|
|
CNpcDualPlatform *m_otherPlatform;
|
|
|
|
s32 m_maxExtension;
|
|
|
|
s32 m_extension;
|
2001-05-09 17:00:18 +02:00
|
|
|
DVECTOR m_lineBase;
|
2001-05-02 21:44:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|