Mid commit for problem solving
This commit is contained in:
@@ -21,7 +21,7 @@ import java.util.stream.Collectors;
|
||||
* <p>The three top-level states that determine routing are:
|
||||
* <ul>
|
||||
* <li><b>Inactive</b> – no game model is present, or the game has ended.
|
||||
* Only disconnection clean-up is performed.</li>
|
||||
* Only disconnection cleanup is performed.</li>
|
||||
* <li><b>Suspended</b> – a forfeit timer is running because exactly one
|
||||
* player remains online. Only reconnection events are accepted.</li>
|
||||
* <li><b>Active</b> – normal gameplay; every event is applied, saved,
|
||||
@@ -120,7 +120,7 @@ public class GameEventProcessor {
|
||||
|
||||
/**
|
||||
* Handles events that arrive when no active game exists (not yet started,
|
||||
* or already ended). Only disconnection clean-up is relevant here.
|
||||
* or already ended). Only disconnection cleanup is relevant here.
|
||||
*
|
||||
* @param event the incoming event.
|
||||
*/
|
||||
@@ -255,7 +255,7 @@ public class GameEventProcessor {
|
||||
* Schedules the 60-second forfeit timer if a disconnection has left
|
||||
* exactly one player online.
|
||||
*
|
||||
* <p>If a previous timer is still pending it is cancelled first to avoid
|
||||
* <p>If a previous timer is still pending it is canceled first to avoid
|
||||
* duplicate timers.
|
||||
*
|
||||
* @param event the event that was just applied.
|
||||
|
||||
Reference in New Issue
Block a user