forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EMPulseClass.h
48 lines (35 loc) · 1.16 KB
/
EMPulseClass.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
/*
EMP - no, you're NOT seeing things :P
*/
#pragma once
#include <AbstractClass.h>
class NOVTABLE EMPulseClass : public AbstractClass
{
public:
static const AbstractType AbsID = AbstractType::EMPulse;
//Static
static DynamicVectorClass<EMPulseClass*>* 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 ~EMPulseClass() RX;
//AbstractClass
virtual AbstractType WhatAmI() const RT(AbstractType);
virtual int Size() const R0;
//Constructor
EMPulseClass(CellStruct dwCrd, int nSpread, int nDuration, TechnoClass *Generator) : AbstractClass(false)
{ JMP_THIS(0x4C52B0); }
protected:
EMPulseClass() : AbstractClass(false){}
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
CellStruct BaseCoords;
int Spread;
int CreationTime; //frame in which this EMP got created
int Duration;
};