(row, col)
| 549 | } |
| 550 | |
| 551 | handleMouseUp(row, col) { |
| 552 | if (this.state.startToAdd) { |
| 553 | this.setState({ |
| 554 | startToAdd: false, |
| 555 | goalToAdd: true, |
| 556 | isMousePressed: false, |
| 557 | addedSRowClick: Math.min(row, this.state.addedSRowClick), |
| 558 | addedSColClick: Math.min(col, this.state.addedSColClick), |
| 559 | }); |
| 560 | } else { |
| 561 | this.setState({ isMousePressed: false }); |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | updateWall(row, col) { |
| 566 | if (this.state.map[row][col].agent === -1 && !this.state.isPlanning && !this.state.isPlanned) { |