2001-06-30 17:57:22 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
nboss.h
|
|
|
|
|
|
|
|
Author: CRB
|
|
|
|
Created:
|
|
|
|
Project: Spongebob
|
|
|
|
Purpose:
|
|
|
|
|
|
|
|
Copyright (c) 2001 Climax Development Ltd
|
|
|
|
|
|
|
|
===========================================================================*/
|
|
|
|
|
|
|
|
#ifndef __ENEMY_NBOSS_H__
|
|
|
|
#include "enemy\nboss.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
void CNpcBossEnemy::postInit()
|
|
|
|
{
|
|
|
|
m_meterOn=false;
|
|
|
|
m_energyBar = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
void CNpcBossEnemy::shutdown()
|
|
|
|
{
|
|
|
|
if ( m_energyBar )
|
|
|
|
{
|
2001-07-05 16:39:00 +02:00
|
|
|
m_energyBar->killFX();
|
2001-06-30 17:57:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
CNpcEnemy::shutdown();
|
|
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
void CNpcBossEnemy::addHealthMeter()
|
|
|
|
{
|
|
|
|
if (!m_meterOn)
|
|
|
|
{
|
|
|
|
m_energyBar=(CFXNRGBar*)CFX::Create(CFX::FX_TYPE_NRG_BAR,this);
|
|
|
|
m_energyBar->SetMax(m_data[m_type].initHealth);
|
|
|
|
m_meterOn=true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|