-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbdimedic.asl
66 lines (53 loc) · 1.03 KB
/
bdimedic.asl
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
//TEAM_AXIS
+flag (F): team(200)
<-
.create_control_points(F,25,3,C);
+control_points(C);
.length(C,L);
+total_control_points(L);
+patrolling;
+patroll_point(0);
.print("Got control points").
+target_reached(T): patrolling & team(200)
<-
.print("MEDPACK!");
.cure;
?patroll_point(P);
-+patroll_point(P+1);
-target_reached(T).
+patroll_point(P): total_control_points(T) & P<T
<-
?control_points(C);
.nth(P,C,A);
.goto(A).
+patroll_point(P): total_control_points(T) & P==T
<-
-patroll_point(P);
+patroll_point(0).
//TEAM_ALLIED
+flag (F): team(100)
<-
.goto(F).
+flag_taken: team(100)
<-
.print("In ASL, TEAM_ALLIED flag_taken");
?base(B);
+returning;
.goto(B);
-exploring.
+heading(H): exploring
<-
.cure;
.wait(2000);
.turn(0.375).
//+heading(H): returning
// <-
// .print("returning").
+target_reached(T): team(100)
<-
.print("target_reached");
+exploring;
.turn(0.375).
+enemies_in_fov(ID,Type,Angle,Distance,Health,Position)
<-
.shoot(3,Position).