File tree Expand file tree Collapse file tree 3 files changed +14
-16
lines changed Expand file tree Collapse file tree 3 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -104,12 +104,15 @@ func (e *Engine) Continue() {
104
104
e .SendCommand (CommandHalt , "" )
105
105
} else if e .State .NextCommand != CommandUnknown {
106
106
e .SendCommand (e .State .NextCommand , e .State .NextCommandFor )
107
- } else if e .State .Command == CommandPenalty || e .State .Command == CommandKickoff {
108
- e .SendCommand (CommandNormalStart , "" )
109
107
}
110
108
}
111
109
112
110
func (e * Engine ) updateNextCommand () {
111
+ if e .State .Command == CommandPenalty || e .State .Command == CommandKickoff {
112
+ e .State .NextCommand = CommandNormalStart
113
+ e .State .NextCommandFor = ""
114
+ return
115
+ }
113
116
primaryEvent := e .State .PrimaryGameEvent ()
114
117
if primaryEvent == nil {
115
118
return
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
+ <span v-b-tooltip.hover title =" Next command" >
4
+ <span v-if =" state.nextCommand !== ''"
5
+ :class =" {'team-blue': state.nextCommandFor === 'Blue', 'team-yellow': state.nextCommandFor === 'Yellow'}" >
6
+ {{state.nextCommand}}
7
+ </span >
8
+ <span v-if =" state.nextCommand === ''" >-</span >
9
+ </span >
10
+ |
3
11
<span v-b-tooltip.hover title =" Last game event" >
4
12
<span v-if =" state.gameEvents.length > 0" >{{state.gameEvents[0].type}}</span >
5
13
<span v-if =" state.gameEvents.length === 0" >-</span >
8
16
v-b-tooltip.hover title =" Additional game events" >
9
17
(+{{state.gameEvents.length-1}})
10
18
</span >
11
- <span v-if =" state.nextCommand !== ''"
12
- v-b-tooltip.hover title =" Next command" >
13
- ->
14
- <span :class =" {'team-blue': state.nextCommandFor === 'Blue', 'team-yellow': state.nextCommandFor === 'Yellow'}" >
15
- {{state.nextCommand}}
16
- </span >
17
- </span >
18
19
|
19
20
<span v-b-tooltip.hover title =" The current stage of the game" >
20
21
{{state.stage}}
Original file line number Diff line number Diff line change 135
135
stopped () {
136
136
return this .state .command === ' stop' ;
137
137
},
138
- ballPlacement () {
139
- return this .state .command === ' ballPlacement' ;
140
- },
141
138
prepareSth () {
142
139
return this .state .command === ' kickoff' || this .state .command === ' penalty' ;
143
140
},
151
148
return isNonPausedStage (this .$store .state .refBoxState )
152
149
|| isPreStage (this .$store .state .refBoxState );
153
150
},
154
- gameEventPresent () {
155
- return this .state .gameEvents .length > 0 ;
156
- },
157
151
autoContinue () {
158
152
return this .state .autoContinue ;
159
153
},
160
154
continuePossible () {
161
- return ( this .gameEventPresent && ( this . stopped || this . ballPlacement )) || this . prepareSth ;
155
+ return this .state . nextCommand !== ' ' ;
162
156
}
163
157
}
164
158
}
You can’t perform that action at this time.
0 commit comments