This commit is contained in:
parent
9c548b05e2
commit
d9b8e0ce6b
2 changed files with 61 additions and 0 deletions
34
source/platform/pbounce.cpp
Normal file
34
source/platform/pbounce.cpp
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
/*=========================================================================
|
||||||
|
|
||||||
|
pbounce.cpp
|
||||||
|
|
||||||
|
Author: CRB
|
||||||
|
Created:
|
||||||
|
Project: Spongebob
|
||||||
|
Purpose:
|
||||||
|
|
||||||
|
Copyright (c) 2001 Climax Development Ltd
|
||||||
|
|
||||||
|
===========================================================================*/
|
||||||
|
|
||||||
|
#ifndef __PLATFORM_PBOUNCE_H__
|
||||||
|
#include "platform\pbounce.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GAME_GAME_H__
|
||||||
|
#include "game\game.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void CNpcBouncePlatform::think( int _frames )
|
||||||
|
{
|
||||||
|
if ( m_contact )
|
||||||
|
{
|
||||||
|
CPlayer *player = GameScene.getPlayer();
|
||||||
|
|
||||||
|
player->springPlayerUp();
|
||||||
|
|
||||||
|
m_contact = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
CPlatformThing::think(_frames);
|
||||||
|
}
|
27
source/platform/pbounce.h
Normal file
27
source/platform/pbounce.h
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
/*=========================================================================
|
||||||
|
|
||||||
|
pbounce.h
|
||||||
|
|
||||||
|
Author: CRB
|
||||||
|
Created:
|
||||||
|
Project: Spongebob
|
||||||
|
Purpose:
|
||||||
|
|
||||||
|
Copyright (c) 2001 Climax Development Ltd
|
||||||
|
|
||||||
|
===========================================================================*/
|
||||||
|
|
||||||
|
#ifndef __PLATFORM_PBOUNCE_H__
|
||||||
|
#define __PLATFORM_PBOUNCE_H__
|
||||||
|
|
||||||
|
#ifndef __PLATFORM_PLATFORM_H__
|
||||||
|
#include "platform\platform.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
class CNpcBouncePlatform : public CNpcPlatform
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
virtual void think( int _frames );
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Add table
Add a link
Reference in a new issue