forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ParasiteClass.h
67 lines (49 loc) · 1.57 KB
/
ParasiteClass.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>
class AnimClass;
class FootClass;
class NOVTABLE ParasiteClass : public AbstractClass
{
public:
static const AbstractType AbsID = AbstractType::Parasite;
static DynamicVectorClass<ParasiteClass*>* Array;
//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 ~ParasiteClass() RX;
//AbstractClass
virtual AbstractType WhatAmI() const RT(AbstractType);
virtual int Size() const R0;
//Constructor
ParasiteClass(FootClass* pOwner = nullptr) : AbstractClass(false)
{ JMP_THIS(0x6292B0); }
//non-virtual
void UpdateSquid()
{ JMP_THIS(0x6297F0); }
bool UpdateGrapple()
{ JMP_THIS(0x629720); }
void ExitUnit()
{ JMP_THIS(0x62A4A0); }
bool CanInfect(FootClass *pTarget) const
{ JMP_THIS(0x62A8E0); }
void TryInfect(FootClass *pTarget)
{ JMP_THIS(0x62A980); }
bool CanExistOnVictimCell() const
{ JMP_THIS(0x62AB40); }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
FootClass* Owner;
FootClass* Victim;
TimerStruct SuppressionTimer;
TimerStruct DamageDeliveryTimer;
AnimClass* GrappleAnim;
ParasiteState GrappleState;
int GrappleAnimFrame;
int GrappleAnimDelay;
bool GrappleAnimGotInvalid;
};