blob: 21a6ecff9cb52cca2b789b35bb62d43ef07f495d (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
//========= Copyright Valve Corporation, All rights reserved. ============//
// tf_tactical_mission.h
// Team Fortress specific missions
// Michael Booth, July 2009
#ifndef TF_TACTICAL_MISSION_H
#define TF_TACTICAL_MISSION_H
#include "tactical_mission.h"
#include "team_control_point_master.h"
#include "fmtstr.h"
class CTFDefendSetupGatesDeployZone : public CTacticalMissionZone
{
public:
};
class CTFDefendSetupGatesMission : public CTacticalMission
{
public:
CTFDefendSetupGatesMission( void );
virtual const CTacticalMissionZone *GetDeployZone( CBasePlayer *who ) const; // where give player should be during this mission
virtual const CTacticalMissionZone *GetObjectiveZone( void ) const; // control points, setup gates, sections of cart path, etc.
virtual const CTacticalMissionZone *GetEnemyZone( void ) const; // where we expect enemies to be during this mission
virtual const char *GetName( void ) const { return "DefendSetupGates"; } // return name of this mission
};
//---------------------------------------------------------------------------------------------
class CTFDefendPointZone : public CTacticalMissionZone
{
public:
CTFDefendPointZone( CTeamControlPoint *point );
};
class CTFDefendPointSniperZone : public CTacticalMissionZone
{
public:
CTFDefendPointSniperZone( CTeamControlPoint *point );
virtual ~CTFDefendPointSniperZone( void ){}
};
class CTFDefendPointMission : public CTacticalMission
{
public:
CTFDefendPointMission( CTeamControlPoint *point );
~CTFDefendPointMission( void );
virtual const CTacticalMissionZone *GetDeployZone( CBasePlayer *who ) const; // where give player should be during this mission
virtual const CTacticalMissionZone *GetObjectiveZone( void ) const; // control points, setup gates, sections of cart path, etc.
virtual const CTacticalMissionZone *GetEnemyZone( void ) const; // where we expect enemies to be during this mission
virtual const char *GetName( void ) const { return m_name; } // return name of this mission
private:
CTeamControlPoint *m_point;
CTFDefendPointZone *m_defenseZone;
CTFDefendPointSniperZone *m_sniperZone;
CFmtStrN< 32 > m_name;
};
//---------------------------------------------------------------------------------------------
/**
* The mission manager provides access to all available missions
*/
class CTFTacticalMissionManager : public CTacticalMissionManager
{
public:
virtual void OnServerActivate( void ); // Invoked when server loads a new map, after everything has been created/spawned
virtual void OnRoundRestart( void ); // invoked when a game round restarts
};
#endif // TF_TACTICAL_MISSION_H
|