| 1 | package com.rox.debug; | |
| 2 | ||
| 3 | /** | |
| 4 | * Where the PPU is drawing: scanline 0-261 (0-239 visible, 241 starts vblank, 261 is the pre-render line) and dot | |
| 5 | * 0-340 along it. | |
| 6 | */ | |
| 7 | public record BeamPosition(int scanline, int dot) { | |
| 8 | /** For a hit recorded without a PPU to ask. */ | |
| 9 | public static final BeamPosition UNKNOWN = new BeamPosition(-1, -1); | |
| 10 | ||
| 11 | public boolean isKnown(){ | |
| 12 |
2
1. isKnown : negated conditional → KILLED 2. isKnown : replaced boolean return with true for com/rox/debug/BeamPosition::isKnown → KILLED |
return !equals(UNKNOWN); |
| 13 | } | |
| 14 | } | |
Mutations | ||
| 12 |
1.1 2.2 |