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: public:
virtual void render(); virtual void render();
virtual int getFrameCount() {return( FRM_BUTTERFLY_FLAP04 - FRM_BUTTERFLY_FLAP01 + 1 );} virtual int getFrameCount() {return( FRM_BUTTERFLY_FLAP04 - FRM_BUTTERFLY_FLAP01 + 1 );}
virtual u8 canBeCaughtByNet() {return( false );}
protected: protected:
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 );
}; };

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 ); 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 setPathType( u8 newType ) {m_npcPath.setPathType( newType );}
void setStartPos( s32 xPos, s32 yPos ); void setStartPos( s32 xPos, s32 yPos );
virtual u8 hasBeenAttacked(); virtual u8 hasBeenAttacked();
bool canBeCaughtByNet(); virtual u8 canBeCaughtByNet();
void caughtWithNet(); void caughtWithNet();
virtual int getFrameCount(); virtual int getFrameCount();
void setSpeed( s16 newSpeed ) {m_speed = newSpeed;} void setSpeed( s16 newSpeed ) {m_speed = newSpeed;}