This commit is contained in:
parent
c3a34bf180
commit
4411c013b1
14 changed files with 209 additions and 32 deletions
|
@ -35,13 +35,19 @@
|
|||
#include <ACTOR_IRONDOGFISH_ANIM.h>
|
||||
#endif
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcIronDogfishEnemy::postInit()
|
||||
{
|
||||
m_state = IRON_DOGFISH_THUMP_1;
|
||||
m_extendDir = EXTEND_RIGHT;
|
||||
m_npcPath.setPathType( CNpcPath::PONG_PATH );
|
||||
m_steamTimer = 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool CNpcIronDogfishEnemy::processSensor()
|
||||
{
|
||||
/*switch( m_sensorFunc )
|
||||
|
@ -67,6 +73,8 @@ bool CNpcIronDogfishEnemy::processSensor()
|
|||
return( false );
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcIronDogfishEnemy::processMovement( int _frames )
|
||||
{
|
||||
s32 moveX = 0, moveY = 0;
|
||||
|
@ -95,6 +103,8 @@ void CNpcIronDogfishEnemy::processMovement( int _frames )
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcIronDogfishEnemy::processWalkToUser( int _frames, int speed )
|
||||
{
|
||||
s32 minX, maxX;
|
||||
|
@ -149,6 +159,8 @@ void CNpcIronDogfishEnemy::processWalkToUser( int _frames, int speed )
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcIronDogfishEnemy::processStandardIronDogfishAttack( int _frames )
|
||||
{
|
||||
if ( playerXDist > 0 )
|
||||
|
@ -256,6 +268,8 @@ void CNpcIronDogfishEnemy::processStandardIronDogfishAttack( int _frames )
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcIronDogfishEnemy::processClose( int _frames )
|
||||
{
|
||||
// swipe at player
|
||||
|
@ -275,6 +289,8 @@ void CNpcIronDogfishEnemy::processClose( int _frames )
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcIronDogfishEnemy::processAttackCollision()
|
||||
{
|
||||
switch( m_animNo )
|
||||
|
@ -294,3 +310,26 @@ void CNpcIronDogfishEnemy::processAttackCollision()
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcIronDogfishEnemy::hasBeenSteamed( DVECTOR &steamPos )
|
||||
{
|
||||
if ( m_steamTimer <= 0 )
|
||||
{
|
||||
hasBeenAttacked();
|
||||
m_steamTimer = 4 * GameState::getOneSecondInFrames();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcIronDogfishEnemy::processTimer(int _frames)
|
||||
{
|
||||
if ( m_steamTimer > 0 )
|
||||
{
|
||||
m_steamTimer -= _frames;
|
||||
}
|
||||
|
||||
CNpcEnemy::processTimer( _frames );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue