blob: 9c27f035572a192f1b948fdf6fabf84743a58680 (
plain)
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
|
#ifndef T2DLL_T2BLACKOUT_H
#define T2DLL_T2BLACKOUT_H
#include "../common.h"
#include "LAttachment.h"
#include "T2EventItem.h"
class T2BlackOutAttach;
enum {
kBlackOutStatus0 = 0,
kBlackOutStatus1 = 1,
kBlackOutStatus2 = 2,
kBlackOutStatus3 = 3,
kBlackOutStatus4 = 4
};
class AFX_CLASS_EXPORT T2BlackOut : public T2EventItem {
public:
T2BlackOut(T2TowerEvent* inTowerEvent, CResFile* inResFile, int inSubID);
virtual ~T2BlackOut();
virtual DWORD GetID() { return 'BOEv'; }
virtual BOOL Start(T2TowerDoc* inDoc);
virtual int Exec(T2TowerDoc* inDoc);
virtual void Write(T2Archive& inArchive);
virtual void Read(T2Archive& inArchive);
void AddConsumptionPower(int inPower);
void SubConsumptionPower(int inPower);
void AddSupplyPower(int inPower);
void SubSupplyPower();
void BreakerOn();
int GetConsumptionPower();
int GetSupplyPower();
int GetDefSupply();
int GetAddSupply();
int GetTransforPrice();
BOOL IsBlackOut() { return mStatus != kBlackOutStatus0; }
protected:
int mDefSupply;
int mAddSupply;
int mTransforPrice;
int mConsumptionPower;
int mSupplyPower;
unsigned int m44;
DWORD m48;
T2BlackOutAttach *mAttach;
};
class T2BlackOutAttach : public LAttachment {
public:
T2BlackOutAttach(T2BlackOut *inBlackOut, unsigned int inMessage, BOOL inExecuteHost);
virtual ~T2BlackOutAttach();
protected:
virtual void ExecuteSelf(unsigned int inMessage, void *ioData);
T2BlackOut *mBlackOut;
};
#endif
|