File tree Expand file tree Collapse file tree 9 files changed +13
-10
lines changed
sdk/src/server-api/sc/protocol/requests Expand file tree Collapse file tree 9 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ package sc.protocol.requests
3
3
import com.thoughtworks.xstream.annotations.XStreamAlias
4
4
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
5
5
6
- /* * Sent by Client to authenticate as administrator. Is not answered if successful. */
6
+ /* * Authenticates a client as administrator to send [AdminLobbyRequest]s.
7
+ * Is not answered if successful. */
7
8
@XStreamAlias(" authenticate" )
8
9
data class AuthenticateRequest (
9
10
@XStreamAsAttribute
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package sc.protocol.requests
3
3
import com.thoughtworks.xstream.annotations.XStreamAlias
4
4
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
5
5
6
- /* * Used to cancel game and delete a GameRoom . */
6
+ /* * Deletes the GameRoom and cancels the Game within . */
7
7
@XStreamAlias(" cancel" )
8
8
data class CancelRequest (
9
9
@XStreamAsAttribute
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ import sc.protocol.ProtocolPacket
5
5
/* * Parent for all packets handled by the Lobby. */
6
6
interface ILobbyRequest : ProtocolPacket
7
7
8
- /* * Marks requests only allowed as an administrative client . */
8
+ /* * Marks requests only allowed after successful authentication . */
9
9
interface AdminLobbyRequest : ILobbyRequest
Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ import com.thoughtworks.xstream.annotations.XStreamAlias
4
4
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
5
5
6
6
/* *
7
- * Used by client to join a room by reservation code.
8
- * The code can be received from the administrative client who requested game creation via PrepareGameRequest.
7
+ * Join a prepared game by reservation.
8
+ * The code is handed out by the administrative client
9
+ * that created the game via a PrepareGameRequest.
9
10
*/
10
11
@XStreamAlias(" joinPrepared" )
11
12
data class JoinPreparedRoomRequest (
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package sc.protocol.requests
3
3
import com.thoughtworks.xstream.annotations.XStreamAlias
4
4
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
5
5
6
- /* * Request of administrative client to observe a gameRoom specified by given roomId. */
6
+ /* * Request by administrative client to observe a gameRoom specified by given roomId. */
7
7
@XStreamAlias(" observe" )
8
8
data class ObservationRequest (
9
9
@XStreamAsAttribute
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import com.thoughtworks.xstream.annotations.XStreamAlias
4
4
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
5
5
6
6
/* *
7
- * Request of administrative client to get score for a player (displayName of player).
7
+ * Request by administrative client to get score for a player (displayName of player).
8
8
* Only useful if testMode was enabled before game ended.
9
9
*/
10
10
@XStreamAlias(" scoreForPlayer" )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import com.thoughtworks.xstream.annotations.XStreamAsAttribute
5
5
import com.thoughtworks.xstream.annotations.XStreamImplicit
6
6
import sc.shared.SlotDescriptor
7
7
8
- /* * Request to prepare a game of [gameType] with slots according to [slotDescriptors]. */
8
+ /* * Prepare a game of [gameType] with slots according to [slotDescriptors]. */
9
9
@XStreamAlias(" prepare" )
10
10
data class PrepareGameRequest (
11
11
@XStreamAsAttribute
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ package sc.protocol.requests
3
3
import com.thoughtworks.xstream.annotations.XStreamAlias
4
4
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
5
5
6
- /* * Sent by administrative client to send a MoveRequest to the current player. Only works for paused games. */
6
+ /* * Request by administrative client to send a MoveRequest to the current player.
7
+ * Only works for paused games. */
7
8
@XStreamAlias(" step" )
8
9
data class StepRequest @JvmOverloads constructor(
9
10
@XStreamAsAttribute
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package sc.protocol.requests
3
3
import com.thoughtworks.xstream.annotations.XStreamAlias
4
4
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
5
5
6
- /* * Send by administrative client to enable or disable testMode. */
6
+ /* * Request by administrative client to toggle testMode. */
7
7
@XStreamAlias(" testMode" )
8
8
class TestModeRequest (
9
9
@XStreamAsAttribute
You can’t perform that action at this time.
0 commit comments