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.
35 lines
1013 B
35 lines
1013 B
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// tf_bot_nav_ent_move_to.h |
|
// Move onto target and wait, as directed by nav entity |
|
// Michael Booth, September 2009 |
|
|
|
#ifndef TF_BOT_NAV_ENT_MOVE_TO_H |
|
#define TF_BOT_NAV_ENT_MOVE_TO_H |
|
|
|
#include "Path/NextBotPathFollow.h" |
|
#include "NextBot/NavMeshEntities/func_nav_prerequisite.h" |
|
|
|
|
|
class CTFBotNavEntMoveTo : public Action< CTFBot > |
|
{ |
|
public: |
|
CTFBotNavEntMoveTo( const CFuncNavPrerequisite *prereq ); |
|
|
|
virtual ActionResult< CTFBot > OnStart( CTFBot *me, Action< CTFBot > *priorAction ); |
|
virtual ActionResult< CTFBot > Update( CTFBot *me, float interval ); |
|
|
|
virtual const char *GetName( void ) const { return "NavEntMoveTo"; }; |
|
|
|
private: |
|
CHandle< CFuncNavPrerequisite > m_prereq; |
|
Vector m_goalPosition; // specific position within entity to move to |
|
CTFNavArea* m_pGoalArea; |
|
|
|
CountdownTimer m_waitTimer; |
|
|
|
PathFollower m_path; // how we get to the loot |
|
CountdownTimer m_repathTimer; |
|
}; |
|
|
|
|
|
#endif // TF_BOT_NAV_ENT_MOVE_TO_H
|
|
|