summaryrefslogtreecommitdiff
path: root/game/server/tf/bot/map_entities/tf_bot_proxy.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/tf/bot/map_entities/tf_bot_proxy.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/tf/bot/map_entities/tf_bot_proxy.h')
-rw-r--r--game/server/tf/bot/map_entities/tf_bot_proxy.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/game/server/tf/bot/map_entities/tf_bot_proxy.h b/game/server/tf/bot/map_entities/tf_bot_proxy.h
new file mode 100644
index 0000000..6cdfbf4
--- /dev/null
+++ b/game/server/tf/bot/map_entities/tf_bot_proxy.h
@@ -0,0 +1,58 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+// tf_bot_proxy.h
+// A Hammer entity that spawns a TFBot and relays events to/from it
+// Michael Booth, November 2009
+
+#ifndef TF_BOT_PROXY_H
+#define TF_BOT_PROXY_H
+
+
+class CTFBot;
+class CTFBotActionPoint;
+
+
+class CTFBotProxy : public CPointEntity
+{
+ DECLARE_CLASS( CTFBotProxy, CPointEntity );
+public:
+ DECLARE_DATADESC();
+
+ CTFBotProxy( void );
+ virtual ~CTFBotProxy() { }
+
+ void Think( void );
+
+ // Input
+ void InputSetTeam( inputdata_t &inputdata );
+ void InputSetClass( inputdata_t &inputdata );
+ void InputSetMovementGoal( inputdata_t &inputdata );
+ void InputSpawn( inputdata_t &inputdata );
+ void InputDelete( inputdata_t &inputdata );
+
+ void OnInjured( void );
+ void OnKilled( void );
+ void OnAttackingEnemy( void );
+ void OnKilledEnemy( void );
+
+protected:
+ // Output
+ COutputEvent m_onSpawned;
+ COutputEvent m_onInjured;
+ COutputEvent m_onKilled;
+ COutputEvent m_onAttackingEnemy;
+ COutputEvent m_onKilledEnemy;
+
+ char m_botName[64];
+ char m_className[64];
+ char m_teamName[64];
+
+ string_t m_spawnOnStart;
+ string_t m_actionPointName;
+ float m_respawnInterval;
+
+ CHandle< CTFBot > m_bot;
+ CHandle< CTFBotActionPoint > m_moveGoal;
+};
+
+
+#endif // TF_BOT_PROXY_H