This commit is contained in:
Charles 2001-04-23 16:54:49 +00:00
parent 6e672f0b3a
commit 505f0e17c0
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,28 @@
/*=========================================================================
pbubble.cpp
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLATFORM_PBUBBLE_H__
#include "platform\pbubble.h"
#endif
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcBubblePlatform::processMovement( int _frames )
{
if ( _frames > 2 )
{
_frames = 2;
}
Pos.vy -= m_data[m_type].speed * _frames;
}

27
source/platform/pbubble.h Normal file
View File

@ -0,0 +1,27 @@
/*=========================================================================
pbubble.h
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLATFORM_PBUBBLE_H__
#define __PLATFORM_PBUBBLE_H__
#ifndef __PLATFORM_PLATFORM_H__
#include "platform\platform.h"
#endif
class CNpcBubblePlatform : public CNpcPlatform
{
protected:
virtual void processMovement( int _frames );
};
#endif