forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HouseTypeClass.h
109 lines (83 loc) · 2.57 KB
/
HouseTypeClass.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
ObjectTypes are initialized by INI files.
*/
#ifndef HOUSETYPE_H
#define HOUSETYPE_H
#include <AbstractTypeClass.h>
class AircraftTypeClass;
class InfantryTypeClass;
class UnitTypeClass;
class HouseTypeClass : public AbstractTypeClass
{
public:
enum {AbsID = abs_HouseType};
//Array
ABSTRACTTYPE_ARRAY(HouseTypeClass);
//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 ~HouseTypeClass() RX;
//AbstractClass
virtual eAbstractType WhatAmI() R0;
virtual int Size() R0;
//Constructor
HouseTypeClass(const char* pID) : AbstractTypeClass(false)
{ JMP_THIS(0x5113F0); }
static signed int __fastcall FindIndexOfName(const char *name)
{ JMP_STD(0x5117D0); }
protected:
HouseTypeClass() : AbstractTypeClass(false) { }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
char ParentCountry [0x18];
PROTECTED_PROPERTY(BYTE, zero_B0);
int ArrayIndex;
int ArrayIndex2; //dunno why
int SideIndex;
int ColorSchemeIndex;
DWORD align_C4;
//are these unused TS leftovers?
double FirepowerMult;
double GroundspeedMult;
double AirspeedMult;
double ArmorMult;
double ROFMult;
double CostMult;
double BuildtimeMult;
//---
float ArmorInfantryMult;
float ArmorUnitsMult;
float ArmorAircraftMult;
float ArmorBuildingsMult;
float ArmorDefensesMult;
float CostInfantryMult;
float CostUnitsMult;
float CostAircraftMult;
float CostBuildingsMult;
float CostDefensesMult;
float SpeedInfantryMult;
float SpeedUnitsMult;
float SpeedAircraftMult;
float BuildtimeInfantryMult;
float BuildtimeUnitsMult;
float BuildtimeAircraftMult;
float BuildtimeBuildingsMult;
float BuildtimeDefensesMult;
float IncomeMult;
TypeList<InfantryTypeClass*> VeteranInfantry;
TypeList<UnitTypeClass*> VeteranUnits;
TypeList<AircraftTypeClass*> VeteranAircraft;
char Suffix [4];
char Prefix;
bool Multiplay;
bool MultiplayPassive;
bool WallOwner;
bool SmartAI; //"smart"?
private: DWORD align_1A4;
};
#endif