1
1
class ArtilleryStateMachine {
2
- list = " " ;
2
+ list = " ALIVE_sup_artillery_stateMachine_list " ;
3
3
4
4
class Idle {
5
5
onState = " " ;
@@ -14,8 +14,8 @@ class ArtilleryStateMachine {
14
14
};
15
15
16
16
class Active {
17
- onState = " [_this, 'onActive'] call ALIVE_fnc_artillery " ;
18
- onStateEntered = " " ;
17
+ onState = " " ;
18
+ onStateEntered = " [_this, 'onActive'] call ALIVE_fnc_artillery " ;
19
19
onStateLeaving = " " ;
20
20
21
21
class InRange {
@@ -32,8 +32,8 @@ class ArtilleryStateMachine {
32
32
};
33
33
34
34
class Move {
35
- onState = " [_this, 'onMove'] call ALIVE_fnc_artillery " ;
36
- onStateEntered = " " ;
35
+ onState = " " ;
36
+ onStateEntered = " [_this, 'onMove'] call ALIVE_fnc_artillery " ;
37
37
onStateLeaving = " " ;
38
38
39
39
class InPosition {
@@ -50,10 +50,16 @@ class ArtilleryStateMachine {
50
50
};
51
51
52
52
class Execute {
53
- onState = " [_this, 'onExecute'] call ALIVE_fnc_artillery " ;
54
- onStateEntered = " " ;
53
+ onState = " " ;
54
+ onStateEntered = " [_this, 'onExecute'] call ALIVE_fnc_artillery " ;
55
55
onStateLeaving = " " ;
56
56
57
+ class Fire {
58
+ targetState = " Fire" ;
59
+ condition = " [_this, 'fireNextRound'] call ALIVE_fnc_artillery" ;
60
+ onTransition = " " ;
61
+ };
62
+
57
63
class Abort {
58
64
targetState = " ReturnToBase" ;
59
65
condition = " !([_this, 'hasFireMission'] call ALIVE_fnc_artillery)" ;
@@ -62,8 +68,8 @@ class ArtilleryStateMachine {
62
68
};
63
69
64
70
class Fire {
65
- onState = " [_this, 'onFire'] call ALIVE_fnc_artillery " ;
66
- onStateEntered = " " ;
71
+ onState = " " ;
72
+ onStateEntered = " [_this, 'onFire'] call ALIVE_fnc_artillery " ;
67
73
onStateLeaving = " " ;
68
74
69
75
class FireMissionComplete {
@@ -92,8 +98,8 @@ class ArtilleryStateMachine {
92
98
};
93
99
94
100
class ReturnToBase {
95
- onState = " [_this, 'onReturnToBase'] call ALIVE_fnc_artillery " ;
96
- onStateEntered = " " ;
101
+ onState = " " ;
102
+ onStateEntered = " [_this, 'onReturnToBase'] call ALIVE_fnc_artillery " ;
97
103
onStateLeaving = " " ;
98
104
99
105
class AtBase {
0 commit comments