diff --git a/source/enemy/ndustdev.cpp b/source/enemy/ndustdev.cpp index ef48eb13b..03845a7ea 100644 --- a/source/enemy/ndustdev.cpp +++ b/source/enemy/ndustdev.cpp @@ -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 ); +} diff --git a/source/enemy/ndustdev.h b/source/enemy/ndustdev.h index fddf8abc6..5fd821c0d 100644 --- a/source/enemy/ndustdev.h +++ b/source/enemy/ndustdev.h @@ -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 ); };