forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
BulletTypeClass.h
117 lines (100 loc) · 2.39 KB
/
BulletTypeClass.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
110
111
112
113
114
115
116
117
/*
Projectiles
*/
#pragma once
#include <ObjectTypeClass.h>
//forward declarations
class AnimTypeClass;
class BulletClass;
class ColorScheme;
class CellClass;
class TechnoClass;
class WeaponTypeClass;
class WarheadTypeClass;
class NOVTABLE BulletTypeClass : public ObjectTypeClass
{
public:
static const AbstractType AbsID = AbstractType::BulletType;
//Array
ABSTRACTTYPE_ARRAY(BulletTypeClass, 0xA83C80u);
//IPersist
virtual HRESULT __stdcall GetClassID(CLSID* pClassID) R0;
//Destructor
virtual ~BulletTypeClass() RX;
//AbstractClass
virtual AbstractType WhatAmI() const RT(AbstractType);
virtual int Size() const R0;
//AbstractTypeClass
//ObjectTypeClass
virtual bool SpawnAtMapCoords(CellStruct* pMapCoords,HouseClass* pOwner) R0;
virtual ObjectClass* CreateObject(HouseClass* owner) R0;
bool Rotates() const {
return !this->NoRotate;
}
void SetScaledSpawnDelay(int delay) {
// JMP_THIS(0x46C840);
this->ScaledSpawnDelay = delay;
}
BulletClass* __fastcall CreateBullet(
AbstractClass* Target,
TechnoClass* Owner,
int Damage,
WarheadTypeClass *WH,
int Speed,
bool Bright)
{ JMP_STD(0x46B050); }
//Constructor
BulletTypeClass(const char* pID) noexcept
: BulletTypeClass(noinit_t())
{ JMP_THIS(0x46BBC0); }
protected:
explicit __forceinline BulletTypeClass(noinit_t) noexcept
: ObjectTypeClass(noinit_t())
{ }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
bool Airburst;
bool Floater;
bool SubjectToCliffs;
bool SubjectToElevation;
bool SubjectToWalls;
bool VeryHigh;
bool Shadow;
bool Arcing;
bool Dropping;
bool Level;
bool Inviso;
bool Proximity;
bool Ranged;
bool NoRotate; // actually has opposite meaning of Rotates. false means Rotates=yes.
bool Inaccurate;
bool FlakScatter;
bool AA;
bool AG;
bool Degenerates;
bool Bouncy;
bool AnimPalette;
bool FirersPalette;
int Cluster;
WeaponTypeClass* AirburstWeapon;
WeaponTypeClass* ShrapnelWeapon;
int ShrapnelCount;
int DetonationAltitude;
bool Vertical;
double Elasticity;
int Acceleration;
ColorScheme* Color;
AnimTypeClass* Trailer;
int ROT;
int CourseLockDuration;
int SpawnDelay;
int ScaledSpawnDelay;
bool Scalable;
int Arm;
byte AnimLow;
byte AnimHigh;
byte AnimRate;
bool Flat;
};