You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// boss_alpha_stunned.h |
|
// Michael Booth, November 2010 |
|
|
|
#ifndef BOSS_ALPHA_STUNNED_H |
|
#define BOSS_ALPHA_STUNNED_H |
|
|
|
#ifdef TF_RAID_MODE |
|
|
|
class CBossAlphaStunned : public Action< CBossAlpha > |
|
{ |
|
public: |
|
CBossAlphaStunned( float duration, Action< CBossAlpha > *nextAction = NULL ); |
|
|
|
virtual ActionResult< CBossAlpha > OnStart( CBossAlpha *me, Action< CBossAlpha > *priorAction ); |
|
virtual ActionResult< CBossAlpha > Update( CBossAlpha *me, float interval ); |
|
virtual void OnEnd( CBossAlpha *me, Action< CBossAlpha > *nextAction ); |
|
|
|
virtual EventDesiredResult< CBossAlpha > OnInjured( CBossAlpha *me, const CTakeDamageInfo &info ); |
|
|
|
virtual const char *GetName( void ) const { return "Stunned"; } // return name of this action |
|
|
|
private: |
|
CountdownTimer m_timer; |
|
enum StunStateType |
|
{ |
|
BECOMING_STUNNED, |
|
STUNNED, |
|
RECOVERING |
|
} |
|
m_state; |
|
int m_layerUsed; |
|
|
|
Action< CBossAlpha > *m_nextAction; |
|
}; |
|
|
|
#endif // TF_RAID_MODE |
|
|
|
#endif // BOSS_ALPHA_STUNNED_H
|
|
|