-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVolcanoHelper.cpp
48 lines (39 loc) · 1.54 KB
/
VolcanoHelper.cpp
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
#include "VolcanoHelper.h"
#include "HFL/Source/HFL.h"
#include "OP2Helper/OP2Helper.h"
#include "Outpost2DLL/Outpost2DLL.h"
const MAP_RECT LavaCellRect(1 + X_, 1 + Y_, 256 + X_, 255 + Y_);
const MAP_RECT NWLavaPath(64 + X_, 20 + Y_, 65 + X_, 26 + Y_);
const MAP_RECT SWLavaPath(90 + X_, 246 + Y_, 91 + X_, 252 + Y_);
const MAP_RECT SELavaPath(180 + X_, 170 + Y_, 181 + X_, 176 + Y_);
const LOCATION NWVolcanoFlowLoc(64 + X_, 20 + Y_);
const LOCATION SWVolcanoFlowLoc(90 + X_, 246 + Y_);
const LOCATION SEVolcanoFlowLoc(180 + X_, 170 + Y_);
Export void NWVolcanoErupts()
{
TethysGame::SetEruption(64 + X_, 20 + Y_, 80);
//TethysGame::SetEruption(volcanoEruptionLoc.x, volcanoEruptionLoc.y, 1000);
}
Export void SWVolcanoErupts()
{
TethysGame::SetEruption(90 + X_, 246 + Y_, 80);
//TethysGame::SetEruption(volcanoEruptionLoc.x, volcanoEruptionLoc.y, 1000);
}
Export void SEVolcanoErupts()
{
TethysGame::SetEruption(180 + X_, 170 + Y_, 80);
//TethysGame::SetEruption(volcanoEruptionLoc.x, volcanoEruptionLoc.y, 1000);
}
void InitializeVolcanos()
{
SetLavaPossibleAllSlowCells(LavaCellRect);
AnimateFlowSE(NWVolcanoFlowLoc);
AnimateFlowSE(SWVolcanoFlowLoc);
AnimateFlowSE(SEVolcanoFlowLoc);
SetLavaPossibleRegion(NWLavaPath);
SetLavaPossibleRegion(SWLavaPath);
SetLavaPossibleRegion(SELavaPath);
Trigger NWTrigVolcanoEruption = CreateTimeTrigger(true, true, 10, "NWVolcanoErupts");
Trigger SWTrigVolcanoEruption = CreateTimeTrigger(true, true, 10, "SWVolcanoErupts");
Trigger SETrigVolcanoEruption = CreateTimeTrigger(true, true, 10, "SEVolcanoErupts");
}