summaryrefslogtreecommitdiff
path: root/game/server/tf/halloween/headless_hatman_body.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/server/tf/halloween/headless_hatman_body.h')
-rw-r--r--game/server/tf/halloween/headless_hatman_body.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/game/server/tf/halloween/headless_hatman_body.h b/game/server/tf/halloween/headless_hatman_body.h
new file mode 100644
index 0000000..ff37495
--- /dev/null
+++ b/game/server/tf/halloween/headless_hatman_body.h
@@ -0,0 +1,47 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+#ifndef HEADLESS_HATMAN_BODY_H
+#define HEADLESS_HATMAN_BODY_H
+
+#include "animation.h"
+#include "NextBotBodyInterface.h"
+
+class INextBot;
+
+
+//----------------------------------------------------------------------------------------------------------------
+/**
+ * The interface for control and information about the bot's body state (posture, animation state, etc)
+ */
+class CHeadlessHatmanBody : public IBody
+{
+public:
+ CHeadlessHatmanBody( INextBot *bot );
+ virtual ~CHeadlessHatmanBody() { }
+
+ virtual void Update( void );
+
+ virtual bool StartActivity( Activity act, unsigned int flags = 0 );
+ virtual Activity GetActivity( void ) const; // return currently animating activity
+ virtual bool IsActivity( Activity act ) const; // return true if currently animating activity matches the given one
+
+ virtual unsigned int GetSolidMask( void ) const; // return the bot's collision mask (hack until we get a general hull trace abstraction here or in the locomotion interface)
+
+private:
+ int m_currentActivity;
+ int m_moveXPoseParameter;
+ int m_moveYPoseParameter;
+};
+
+
+inline Activity CHeadlessHatmanBody::GetActivity( void ) const
+{
+ return (Activity)m_currentActivity;
+}
+
+inline bool CHeadlessHatmanBody::IsActivity( Activity act ) const
+{
+ return act == m_currentActivity ? true : false;
+}
+
+
+#endif // HEADLESS_HATMAN_BODY_H