19 lines
550 B
Java
19 lines
550 B
Java
|
|
package app.playmancala.model;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
import app.playmancala.engine.MancalaGame;
|
||
|
|
|
||
|
|
// A live game as players and spectators receive it; leaves out spectator ids and other server-side state.
|
||
|
|
// It refers to the live MancalaGame, so serialise it on the game loop.
|
||
|
|
public record ClientGame(
|
||
|
|
String id,
|
||
|
|
MancalaGame mancalaGame,
|
||
|
|
GameUsersConnectionInfo gameUsersConnectionInfo,
|
||
|
|
long startedAt,
|
||
|
|
List<Long> moveTimes,
|
||
|
|
int spectatorCount,
|
||
|
|
GameClock clock,
|
||
|
|
long serverTime) {
|
||
|
|
}
|