This commit is contained in:
parent
a04d0b85f1
commit
a4216db705
30
source/platform/pfishhk3.cpp
Normal file
30
source/platform/pfishhk3.cpp
Normal file
@ -0,0 +1,30 @@
|
||||
/*=========================================================================
|
||||
|
||||
pfishhk3.cpp
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __PLATFORM_PFISHHK3_H__
|
||||
#include "platform\pfishhk3.h"
|
||||
#endif
|
||||
|
||||
void CNpcFishHook3Platform::postInit()
|
||||
{
|
||||
sBBox boundingBox = m_modelGfx->GetBBox();
|
||||
boundingBox.YMin += 12;
|
||||
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) );
|
||||
setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, ( boundingBox.YMax + boundingBox.YMin ) >> 1 );
|
||||
|
||||
m_isMoving = false;
|
||||
m_isResetting = false;
|
||||
m_isShuttingDown = false;
|
||||
m_lineBase.vx = Pos.vx;
|
||||
m_lineBase.vy = 0;
|
||||
}
|
27
source/platform/pfishhk3.h
Normal file
27
source/platform/pfishhk3.h
Normal file
@ -0,0 +1,27 @@
|
||||
/*=========================================================================
|
||||
|
||||
pfishhk3.h
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __PLATFORM_PFISHHK3_H__
|
||||
#define __PLATFORM_PFISHHK3_H__
|
||||
|
||||
#ifndef __PLATFORM_PFISHHK_H__
|
||||
#include "platform\pfishhk.h"
|
||||
#endif
|
||||
|
||||
class CNpcFishHook3Platform : public CNpcFishHookPlatform
|
||||
{
|
||||
public:
|
||||
virtual void postInit();
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user