This commit is contained in:
parent
3b3a722894
commit
b9ad89d6a0
@ -24,11 +24,15 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void CNpcDustDevilEnemy::postInit()
|
void CNpcDustDevilEnemy::postInit()
|
||||||
{
|
{
|
||||||
m_npcPath.setPathType( CNpcPath::SINGLE_USE_PATH );
|
m_npcPath.setPathType( CNpcPath::SINGLE_USE_PATH );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void CNpcDustDevilEnemy::processMovement( int _frames )
|
void CNpcDustDevilEnemy::processMovement( int _frames )
|
||||||
{
|
{
|
||||||
s32 maxHeight = 40;
|
s32 maxHeight = 40;
|
||||||
@ -122,6 +126,8 @@ void CNpcDustDevilEnemy::processMovement( int _frames )
|
|||||||
processMovementModifier( _frames, moveX, moveY, moveVel, moveDist );
|
processMovementModifier( _frames, moveX, moveY, moveVel, moveDist );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void CNpcDustDevilEnemy::processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange )
|
void CNpcDustDevilEnemy::processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange )
|
||||||
{
|
{
|
||||||
Pos.vx += distX;
|
Pos.vx += distX;
|
||||||
@ -145,3 +151,10 @@ void CNpcDustDevilEnemy::processMovementModifier( int _frames, s32 distX, s32 di
|
|||||||
|
|
||||||
m_drawRotation = heading;
|
m_drawRotation = heading;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
s32 CNpcDustDevilEnemy::getFrameShift( int _frames )
|
||||||
|
{
|
||||||
|
return( ( _frames << 8 ) >> 2 );
|
||||||
|
}
|
||||||
|
@ -19,6 +19,7 @@ class CNpcDustDevilEnemy : public CNpcEnemy
|
|||||||
public:
|
public:
|
||||||
virtual void postInit();
|
virtual void postInit();
|
||||||
protected:
|
protected:
|
||||||
|
virtual s32 getFrameShift( int _frames );
|
||||||
virtual void processMovement( int _frames );
|
virtual void processMovement( int _frames );
|
||||||
virtual void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
|
virtual void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user