forked from Ares-Developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 30
/
DiskLaserClass.h
68 lines (51 loc) · 1.63 KB
/
DiskLaserClass.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
/*
DiskLasers are the floating disks' purple lasers.
*/
#pragma once
#include <AbstractClass.h>
class LaserDrawClass;
class TechnoClass;
class WeaponTypeClass;
class NOVTABLE DiskLaserClass : public AbstractClass
{
public:
static const AbstractType AbsID = AbstractType::DiskLaser;
// static
static constexpr constant_ptr<DynamicVectorClass<DiskLaserClass*>, 0x8A0208u> const Array{};
static constexpr auto Radius = 240;
static constexpr reference<Point2D, 0x8A0180u, 16> DrawCoords {};
//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 ~DiskLaserClass() RX;
//AbstractClass
virtual AbstractType WhatAmI() const RT(AbstractType);
virtual int Size() const R0;
//non-virtual
void Fire(TechnoClass* pOwner, TechnoClass* pTarget, WeaponTypeClass* pWeapon, int nDamage)
{ JMP_THIS(0x4A71A0); }
void PointerGotInvalid(AbstractClass* pInvalid)
{ JMP_THIS(0x4A7900); }
//Constructor
DiskLaserClass() noexcept
: DiskLaserClass(noinit_t())
{ JMP_THIS(0x4A7A30); }
protected:
explicit __forceinline DiskLaserClass(noinit_t) noexcept
: AbstractClass(noinit_t())
{ }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
TechnoClass* Owner;
TechnoClass* Target;
WeaponTypeClass* Weapon;
DWORD unknown_30;
DWORD unknown_34;
DWORD unknown_38;
int Damage;
};