(row, col)
| 438 | } |
| 439 | |
| 440 | updateWall(row, col) { |
| 441 | if (this.state.map[row][col].agent === -1 && !this.state.isPlanning && !this.state.isPlanned) { |
| 442 | var newMap = this.state.map.slice(); |
| 443 | newMap[row][col] = { |
| 444 | ...newMap[row][col], |
| 445 | isWall: !newMap[row][col].isWall, |
| 446 | }; |
| 447 | this.setState({ map: newMap }); |
| 448 | } |
| 449 | } |
| 450 | |
| 451 | startNewTask() { |
| 452 | this.setState( |
no outgoing calls
no test coverage detected