This commit is contained in:
parent
8679995a69
commit
9bf66ef925
10 changed files with 115 additions and 26 deletions
|
@ -15,6 +15,10 @@
|
|||
#include "enemy\nboss.h"
|
||||
#endif
|
||||
|
||||
#ifndef __GAME_GAME_H__
|
||||
#include "game\game.h"
|
||||
#endif
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -22,6 +26,7 @@ void CNpcBossEnemy::postInit()
|
|||
{
|
||||
m_meterOn=false;
|
||||
m_energyBar = NULL;
|
||||
m_invulnerableTimer = 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -38,6 +43,18 @@ void CNpcBossEnemy::shutdown()
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcBossEnemy::think( int _frames )
|
||||
{
|
||||
if ( m_invulnerableTimer > 0 )
|
||||
{
|
||||
m_invulnerableTimer -= _frames;
|
||||
}
|
||||
|
||||
CNpcEnemy::think( _frames );
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcBossEnemy::addHealthMeter()
|
||||
{
|
||||
if (!m_meterOn)
|
||||
|
@ -83,6 +100,7 @@ void CNpcBossEnemy::processShot( int _frames )
|
|||
m_animPlaying = true;
|
||||
m_animNo = m_data[m_type].recoilAnim;
|
||||
m_frame = 0;
|
||||
m_invulnerableTimer = 2 * GameState::getOneSecondInFrames();
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue