This commit is contained in:
parent
391170dbd4
commit
3e9626c776
3 changed files with 3 additions and 2 deletions
|
@ -27,6 +27,7 @@ class CNpcButterflyBackgroundEnemy : public CNpcSmallJellyfishBackgroundEnemy
|
|||
public:
|
||||
virtual void render();
|
||||
virtual int getFrameCount() {return( FRM_BUTTERFLY_FLAP04 - FRM_BUTTERFLY_FLAP01 + 1 );}
|
||||
virtual u8 canBeCaughtByNet() {return( false );}
|
||||
protected:
|
||||
virtual void processMovementModifier( int _frames, s32 distX, s32 distY, s32 dist, s16 headingChange );
|
||||
};
|
||||
|
|
|
@ -1392,7 +1392,7 @@ void CNpcEnemy::processEvent( GAME_EVENT evt, CThing *sourceThing )
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool CNpcEnemy::canBeCaughtByNet()
|
||||
u8 CNpcEnemy::canBeCaughtByNet()
|
||||
{
|
||||
return( m_isActive && !m_isDying && m_data[m_type].canBeNetted );
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ public:
|
|||
void setPathType( u8 newType ) {m_npcPath.setPathType( newType );}
|
||||
void setStartPos( s32 xPos, s32 yPos );
|
||||
virtual u8 hasBeenAttacked();
|
||||
bool canBeCaughtByNet();
|
||||
virtual u8 canBeCaughtByNet();
|
||||
void caughtWithNet();
|
||||
virtual int getFrameCount();
|
||||
void setSpeed( s16 newSpeed ) {m_speed = newSpeed;}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue