This commit is contained in:
Charles 2001-05-31 21:31:37 +00:00
parent 3b3a722894
commit b9ad89d6a0
2 changed files with 14 additions and 0 deletions

View File

@ -24,11 +24,15 @@
#endif
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcDustDevilEnemy::postInit()
{
m_npcPath.setPathType( CNpcPath::SINGLE_USE_PATH );
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcDustDevilEnemy::processMovement( int _frames )
{
s32 maxHeight = 40;
@ -122,6 +126,8 @@ void CNpcDustDevilEnemy::processMovement( int _frames )
processMovementModifier( _frames, moveX, moveY, moveVel, moveDist );
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcDustDevilEnemy::processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange )
{
Pos.vx += distX;
@ -145,3 +151,10 @@ void CNpcDustDevilEnemy::processMovementModifier( int _frames, s32 distX, s32 di
m_drawRotation = heading;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
s32 CNpcDustDevilEnemy::getFrameShift( int _frames )
{
return( ( _frames << 8 ) >> 2 );
}

View File

@ -19,6 +19,7 @@ class CNpcDustDevilEnemy : public CNpcEnemy
public:
virtual void postInit();
protected:
virtual s32 getFrameShift( int _frames );
virtual void processMovement( int _frames );
virtual void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
};