This commit is contained in:
Charles 2001-06-27 18:28:21 +00:00
parent 2c9b448264
commit 14fe98ab08
13 changed files with 71 additions and 22 deletions

View file

@ -47,9 +47,6 @@
#include <sprites.h>
#endif
#include "fx\fx.h"
#include "fx\fxnrgbar.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -168,6 +165,8 @@ void CNpcSeaSnakeEnemy::postInit()
m_meterOn=false;
m_turnDir = 0;
m_waitTimer = 0;
m_energyBar = NULL;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -194,6 +193,11 @@ void CNpcSeaSnakeEnemy::shutdown()
m_segmentArray[segCount].shutdown();
}
if ( m_energyBar )
{
m_energyBar->setToShutdown();
}
CNpcEnemy::shutdown();
}
@ -696,8 +700,8 @@ void CNpcSeaSnakeEnemy::render()
{
if (!m_meterOn)
{
CFXNRGBar *T=(CFXNRGBar*)CFX::Create(CFX::FX_TYPE_NRG_BAR,this);
T->SetMax( NPC_SEA_SNAKE_LENGTH );
m_energyBar=(CFXNRGBar*)CFX::Create(CFX::FX_TYPE_NRG_BAR,this);
m_energyBar->SetMax( NPC_SEA_SNAKE_LENGTH + 1 );
m_meterOn=true;
}