This commit is contained in:
Charles 2001-05-15 20:34:37 +00:00
parent 391170dbd4
commit 3e9626c776
3 changed files with 3 additions and 2 deletions

View File

@ -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 );
};

View File

@ -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 );
}

View File

@ -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;}