From 505f0e17c0245a8ffd2583facdfb3f2e577d6457 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 23 Apr 2001 16:54:49 +0000 Subject: [PATCH] --- source/platform/pbubble.cpp | 28 ++++++++++++++++++++++++++++ source/platform/pbubble.h | 27 +++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 source/platform/pbubble.cpp create mode 100644 source/platform/pbubble.h 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