summaryrefslogtreecommitdiff
path: root/game/server/tf/bot/map_entities/tf_spawner_boss.h
blob: 13f247a99d096786ab5b105acc1bccf8ccb58ba9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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