diff --git a/source/platform/pbubble.cpp b/source/platform/pbubble.cpp new file mode 100644 index 000000000..b2c440399 --- /dev/null +++ b/source/platform/pbubble.cpp @@ -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; +} \ No newline at end of file diff --git a/source/platform/pbubble.h b/source/platform/pbubble.h new file mode 100644 index 000000000..e3fb4b812 --- /dev/null +++ b/source/platform/pbubble.h @@ -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 \ No newline at end of file