forked from Ares-Developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 30
/
AirstrikeClass.h
67 lines (54 loc) · 2 KB
/
AirstrikeClass.h
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
#pragma once
#include <AbstractClass.h>
//forward declarations
class AircraftTypeClass;
class ObjectClass;
class TechnoClass;
class FootClass;
//The AirstrikeClass handles the airstrikes Boris calls in.
class NOVTABLE AirstrikeClass : public AbstractClass
{
public:
static const AbstractType AbsID = AbstractType::Airstrike;
//IPersist
virtual HRESULT __stdcall GetClassID(CLSID* pClassID) R0;
//IPersistStream
virtual HRESULT __stdcall Load(IStream* pStm) R0;
virtual HRESULT __stdcall Save(IStream* pStm,BOOL fClearDirty) R0;
//Destructor
virtual ~AirstrikeClass() RX;
//AbstractClass
virtual AbstractType WhatAmI() const RT(AbstractType);
virtual int Size() const R0;
//non-virtual
void StartMission(ObjectClass* pTarget)
{ JMP_THIS(0x41D830); }
//Constructor
AirstrikeClass(TechnoClass* pOwner) noexcept
: AirstrikeClass(noinit_t())
{ JMP_THIS(0x41D380); }
protected:
explicit __forceinline AirstrikeClass(noinit_t) noexcept
: AbstractClass(noinit_t())
{ }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
int AirstrikeTeam; //As in the INI files.
int EliteAirstrikeTeam; //As in the INI files.
int AirstrikeTeamTypeIndex; //As in the INI files.
int EliteAirstrikeTeamTypeIndex; //As in the INI files.
DWORD unknown_34;
DWORD unknown_38; //unused?
bool IsOnMission; //Is the Aircraft on its way?
bool unknown_bool_3D;
DWORD TeamDissolveFrame; //when was the last time this team was invoked and subsequently dissolved
int AirstrikeRechargeTime; //As in the INI files.
int EliteAirstrikeRechargeTime; //As in the INI files.
TechnoClass* Owner; //The unit that called the Airstrike (usually Boris).
ObjectClass* Target; //The Airstrike's target.
AircraftTypeClass* AirstrikeTeamType; //As in the INI files.
AircraftTypeClass* EliteAirstrikeTeamType; //As in the INI files.
FootClass* FirstObject;
};