summaryrefslogtreecommitdiff
path: root/game/server/tf/bot/map_entities/tf_spawner_boss.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_spawner_boss.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_spawner_boss.h')
-rw-r--r--game/server/tf/bot/map_entities/tf_spawner_boss.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/game/server/tf/bot/map_entities/tf_spawner_boss.h b/game/server/tf/bot/map_entities/tf_spawner_boss.h
new file mode 100644
index 0000000..13f247a
--- /dev/null
+++ b/game/server/tf/bot/map_entities/tf_spawner_boss.h
@@ -0,0 +1,54 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+// tf_spawner_boss.h
+// Entity to spawn a Boss
+// Michael Booth, February 2011
+
+#ifndef TF_SPAWNER_BOSS_H
+#define TF_SPAWNER_BOSS_H
+
+#ifdef OBSOLETE_USE_BOSS_ALPHA
+
+#ifdef TF_RAID_MODE
+
+class CBotNPC;
+
+class CTFSpawnerBoss : public CPointEntity
+{
+public:
+ DECLARE_CLASS( CTFSpawnerBoss, CPointEntity );
+ DECLARE_DATADESC();
+
+ CTFSpawnerBoss( void );
+ virtual ~CTFSpawnerBoss() { }
+
+ void SpawnerThink( void );
+
+ // Input.
+ void InputEnable( inputdata_t &inputdata );
+ void InputDisable( inputdata_t &inputdata );
+
+ // Output
+ void OnBotKilled( CBotNPC *pBot );
+ void OnBotStunned( CBotNPC *pBot );
+
+private:
+ bool m_isExpended;
+ int m_spawnCount;
+ int m_spawnCountRemaining;
+ int m_maxActiveCount;
+ float m_spawnInterval;
+ string_t m_teamName;
+
+ COutputEvent m_onSpawned;
+ COutputEvent m_onExpended;
+ COutputEvent m_onBotKilled;
+ COutputEvent m_onBotStunned;
+
+ CUtlVector< CHandle< CBotNPC > > m_spawnedBotVector;
+};
+
+#endif // TF_RAID_MODE
+
+#endif // OBSOLETE_USE_BOSS_ALPHA
+
+#endif // TF_SPAWNER_BOSS_H