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.
28 lines
973 B
28 lines
973 B
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// |
|
// |
|
// |
|
//============================================================================= |
|
#ifndef MERASMUS_STAFF_ATTACK_H |
|
#define MERASMUS_STAFF_ATTACK_H |
|
|
|
//--------------------------------------------------------------------------------------------- |
|
//--------------------------------------------------------------------------------------------- |
|
class CMerasmusStaffAttack : public Action< CMerasmus > |
|
{ |
|
public: |
|
CMerasmusStaffAttack( CTFPlayer* pTarget ); |
|
virtual ActionResult< CMerasmus > OnStart( CMerasmus *me, Action< CMerasmus > *priorAction ); |
|
virtual ActionResult< CMerasmus > Update( CMerasmus *me, float interval ); |
|
|
|
virtual const char *GetName( void ) const { return "Staff Attack"; } // return name of this action |
|
|
|
private: |
|
CountdownTimer m_staffSwingTimer; |
|
CountdownTimer m_hitTimer; |
|
CHandle< CTFPlayer > m_hTarget; |
|
|
|
PathFollower m_path; |
|
}; |
|
|
|
#endif // MERASMUS_STAFF_ATTACK_H
|