| 1 | package io.github.some_example_name; | |
| 2 | ||
| 3 | import com.badlogic.gdx.math.Rectangle; | |
| 4 | ||
| 5 | public class SlimeLogic { | |
| 6 | private final Rectangle slimeBounds; | |
| 7 | private boolean slimeCheck = false; | |
| 8 | ||
| 9 | public SlimeLogic(Rectangle slimeBounds) { | |
| 10 | this.slimeBounds = slimeBounds; | |
| 11 | } | |
| 12 | ||
| 13 | public void update(Rectangle playerBounds) { | |
| 14 | slimeCheck = playerBounds.overlaps(slimeBounds); | |
| 15 | } | |
| 16 | ||
| 17 | public boolean isSlimeCheck() { | |
| 18 |
2
1. isSlimeCheck : replaced boolean return with false for io/github/some_example_name/SlimeLogic::isSlimeCheck → KILLED 2. isSlimeCheck : replaced boolean return with true for io/github/some_example_name/SlimeLogic::isSlimeCheck → KILLED |
return slimeCheck; |
| 19 | } | |
| 20 | } | |
Mutations | ||
| 18 |
1.1 2.2 |