Package com.marswars.proxy_server
Class PieceDetectionPacket
java.lang.Object
com.marswars.proxy_server.PieceDetectionPacket
- All Implemented Interfaces:
Packet
Packet handler for game piece detection data.
Provides functionality to parse incoming packets containing
information about detected game pieces and their locations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classData structure containing game piece detection information.Nested classes/interfaces inherited from interface com.marswars.proxy_server.Packet
Packet.Timestamp -
Field Summary
FieldsFields inherited from interface com.marswars.proxy_server.Packet
HEADER_SIZE, ID_IDX, PACKET_ID_IDX, TIME_NSEC_IDX, TIME_SEC_IDX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionupdateData(byte[] buffer) Parses piece detection packet data from a received byte buffer.
-
Field Details
-
TYPE_ID
public static final int TYPE_ID- See Also:
-
-
Constructor Details
-
PieceDetectionPacket
public PieceDetectionPacket()
-
-
Method Details
-
updateData
Parses piece detection packet data from a received byte buffer. Extracts timestamp, camera serial, and game piece detection information from the buffer.- Parameters:
buffer- the byte buffer containing the packet data- Returns:
- PieceDetectionData object with parsed information
-