This commit is contained in:
parent
b2e9124ec0
commit
2af8ab222b
2 changed files with 75 additions and 0 deletions
46
source/hazard/hinert.cpp
Normal file
46
source/hazard/hinert.cpp
Normal file
|
@ -0,0 +1,46 @@
|
|||
/*=========================================================================
|
||||
|
||||
hinert.cpp
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __HAZARD_HINERT_H__
|
||||
#include "hazard\hinert.h"
|
||||
#endif
|
||||
|
||||
#ifndef __VID_HEADER_
|
||||
#include "system\vid.h"
|
||||
#endif
|
||||
|
||||
#ifndef __LEVEL_LEVEL_H__
|
||||
#include "level\level.h"
|
||||
#endif
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcInertHazard::render()
|
||||
{
|
||||
CHazardThing::render();
|
||||
|
||||
if (canRender())
|
||||
{
|
||||
DVECTOR &renderPos=getRenderPos();
|
||||
|
||||
m_modelGfx->Render( renderPos );
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcInertHazard::collidedWith( CThing *_thisThing )
|
||||
{
|
||||
// do not collide
|
||||
}
|
29
source/hazard/hinert.h
Normal file
29
source/hazard/hinert.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*=========================================================================
|
||||
|
||||
hinert.h
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __HAZARD_HINERT_H__
|
||||
#define __HAZARD_HINERT_H__
|
||||
|
||||
#ifndef __HAZARD_HAZARD_H__
|
||||
#include "hazard\hazard.h"
|
||||
#endif
|
||||
|
||||
class CNpcInertHazard : public CNpcHazard
|
||||
{
|
||||
public:
|
||||
virtual void render();
|
||||
protected:
|
||||
virtual void collidedWith(CThing *_thisThing);
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue