summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2TowerEvent.h
blob: d69d128a2769370b21645cad092f563b72550d27 (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
#pragma once
#include "common.h"
#include "LArray.h"

class AFX_CLASS_EXPORT T2TowerEvent {
public:
	T2TowerEvent(T2WorldDef* inWorldDef);
	~T2TowerEvent();
	void InitTowerEvent(T2TowerDoc* inDoc);
	T2FireBurning* GetFireBurning();
	T2MetroRailway* GetMetroRailway();
	T2BlackOut* GetBlackOut();
	T2TowerVision* GetTowerVision();
	T2Transport* GetCruise();
	BOOL IsBlackOut();
	void SetLatestBuild(T2Equip* inEquip, T2ToolDef* inToolDef, BOOL inFlag);
	T2Equip* GetLatestBuild();
	void AppendStandby(T2EventItem* inEventItem);
	void InsertExecute(T2EventItem* inEventItem);
	void MakeTowerVisionEvent(T2OutObj* inOutObj);
	void KillTowerVisionEvent();
	T2EventItem* MakeXEvent(DWORD inID);
	void KillXEvent(DWORD inID);
	T2EventItem* GetEvent(DWORD inID);
	unsigned int GetXEvent(DWORD inID);
	void StopEvent();
	int Idle(T2TowerDoc* inDoc);
	void StoreWaitSequence(T2EventItem* inEventItem);
	void Write(T2Archive& inArchive);
	void Read(T2Archive& inArchive);
	void DrawRubble(T2TowerDoc* inDoc, T2Tenant* inTenant);
	void ViewModeChanged(T2TowerDoc* inDoc, VIEWMODE inViewMode);

	T2WorldDef *mWorldDef;
	T2TowerDoc *mDocument;
	int _8;
	int mLevel;
	LArray mStandby;
	LArray mWaiting;
	LArray mRunning;
	T2FireBurning *mFireBurning;
	T2MetroRailway *mMetroRailway;
	T2BlackOut *mBlackOut;
	T2SantaClaus *mSantaClaus;
	T2TowerVision *mTowerVision;
	T2OutDecoration *mOutDecoration;
	unsigned int _88; // which VIP bits have been allocated
	T2Equip *mLatestBuild;
	int _90;
};