This commit is contained in:
Charles 2001-05-04 21:58:41 +00:00
parent 17723f2894
commit b81f49a1cd
4 changed files with 35 additions and 0 deletions

View file

@ -45,6 +45,11 @@ void CNpcMotherJellyfishEnemy::postInit()
{
m_state = MOTHER_JELLYFISH_RETURN_TO_START_1;
m_spawnTimer = 0;
if ( CLevel::getIsBossRespawn() )
{
m_health = CLevel::getBossHealth();
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -242,6 +247,19 @@ void CNpcMotherJellyfishEnemy::processClose( int _frames )
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcMotherJellyfishEnemy::shutdown()
{
if ( m_isActive )
{
CLevel::setIsBossRespawn( true );
CLevel::setBossHealth( m_health );
}
CNpcEnemy::shutdown();
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcMotherJellyfishEnemy::spawnJellyfish( int _frames )
{
if ( m_jellyfishCount )

View file

@ -19,6 +19,7 @@ class CNpcMotherJellyfishEnemy : public CNpcEnemy
public:
virtual void postInit();
void render();
virtual void shutdown();
protected:
virtual void processClose( int _frames );
virtual void processMovement( int _frames );