Record Class DrawDecisionContext
java.lang.Object
java.lang.Record
com.fortemate.dicechess.runtime.DrawDecisionContext
- Record Components:
gameId- the game's idseat- the bot's seat, exactlyWhiteorBlackversion- the authoritative game-state version carried by the deliverydfen- the pre-roll position; no dice are presentclock- the game clock, ornullfor an untimed game
public record DrawDecisionContext(String gameId, String seat, long version, String dfen, GameClock clock)
extends Record
Authenticated pre-roll context for deciding an opponent's pending draw offer.
This context deliberately has no legal moves or dice-dependent data: the platform requests a draw decision before revealing the roll.
-
Constructor Summary
ConstructorsConstructorDescriptionDrawDecisionContext(String gameId, String seat, long version, String dfen, GameClock clock) Creates a validated draw-decision context. -
Method Summary
Modifier and TypeMethodDescriptionclock()Returns the value of theclockrecord component.dfen()Returns the value of thedfenrecord component.final booleanIndicates whether some other object is "equal to" this one.gameId()Returns the value of thegameIdrecord component.final inthashCode()Returns a hash code value for this object.seat()Returns the value of theseatrecord component.final StringtoString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
DrawDecisionContext
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
gameId
-
seat
-
version
-
dfen
-
clock
-