This commit is contained in:
parent
6e672f0b3a
commit
505f0e17c0
28
source/platform/pbubble.cpp
Normal file
28
source/platform/pbubble.cpp
Normal 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
27
source/platform/pbubble.h
Normal 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
|
Loading…
Reference in New Issue
Block a user