27 lines
694 B
C++
27 lines
694 B
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
// tf_bot_taunt.h
|
|
// Stand still and play a taunt animation
|
|
// Michael Booth, November 2009
|
|
|
|
#ifndef TF_BOT_TAUNT_H
|
|
#define TF_BOT_TAUNT_H
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
class CTFBotTaunt : public Action< CTFBot >
|
|
{
|
|
public:
|
|
virtual ActionResult< CTFBot > OnStart( CTFBot *me, Action< CTFBot > *priorAction );
|
|
virtual ActionResult< CTFBot > Update( CTFBot *me, float interval );
|
|
|
|
virtual const char *GetName( void ) const { return "Taunt"; };
|
|
|
|
private:
|
|
CountdownTimer m_tauntTimer;
|
|
CountdownTimer m_tauntEndTimer;
|
|
bool m_didTaunt;
|
|
};
|
|
|
|
|
|
#endif // TF_BOT_TAUNT_H
|