OpenMoHAA
0.82.0
Loading...
Searching...
No Matches
Tow_Entities.h
1
/*
2
===========================================================================
3
Copyright (C) 2023 the OpenMoHAA team
4
5
This file is part of OpenMoHAA source code.
6
7
OpenMoHAA source code is free software; you can redistribute it
8
and/or modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of the License,
10
or (at your option) any later version.
11
12
OpenMoHAA source code is distributed in the hope that it will be
13
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with OpenMoHAA source code; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
===========================================================================
21
*/
22
23
#pragma once
24
25
#include "Entities.h"
26
27
#define TOWOBJECTIVE_SPAWNFLAG_NO_RESPAWN 2
28
29
class
TOWObjective :
public
Objective
30
{
31
private
:
32
int
m_iAxisObjNum;
33
int
m_iAlliesObjNum;
34
eController m_eController;
35
eController m_eLeadingController;
36
bool
m_bNoRespawnForLeading;
37
str
m_sAxisObjName;
38
str
m_sAlliesObjName;
39
40
public
:
41
CLASS_PROTOTYPE(TOWObjective);
42
43
TOWObjective();
44
45
void
SetController(
Event
*ev);
46
void
GetController(
Event
*ev);
47
void
TakeOver(
Event
*ev);
48
void
SetAlliesObjNum(
Event
*ev);
49
void
SetAxisObjNum(
Event
*ev);
50
void
OnInitialize(
Event
*ev);
51
void
SetCurrent(
Event
*ev);
52
53
int
GetController()
const
;
54
55
void
Archive(
Archiver
& arc)
override
;
56
};
57
58
class
TOWObjectiveMan
59
{
60
private
:
61
Container<TOWObjective *>
m_towObjectives;
62
int
m_iNumAlliesObjectives;
63
int
m_iNumAxisObjectives;
64
65
public
:
66
TOWObjectiveMan();
67
68
void
Reset();
69
void
AddObjective(
TOWObjective
*objective);
70
void
TakeOverObjective(eController controller, eController controllingTeam);
71
};
72
73
extern
TOWObjectiveMan
g_TOWObjectiveMan;
Archiver
Definition
archive.h:86
Container
Definition
container.h:85
Event
Definition
listener.h:246
TOWObjectiveMan
Definition
Tow_Entities.h:59
TOWObjective
Definition
Tow_Entities.h:30
str
Definition
str.h:77
code
fgame
Tow_Entities.h
Generated by
1.13.2