File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ fun <T> HierarchicalStreamReader.readNode(action: HierarchicalStreamReader.() ->
22
22
return result
23
23
}
24
24
25
- inline fun <reified T > UnmarshallingContext.read () = convertAnother(null , T ::class .java) as T
25
+ inline fun <reified T > UnmarshallingContext.read () =
26
+ convertAnother(null , T ::class .java) as T
26
27
27
28
class GameResultConverter : Converter {
28
29
override fun canConvert (type : Class <* >? ): Boolean = type == GameResult ::class .java
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ private val logger = LoggerFactory.getLogger(Player::class.java)
18
18
/* *
19
19
* Keeps information about a player:
20
20
* - basic info: name and color
21
- * - state info: if they can time out, whether their game is paused
22
- * - game result info: left & timeouts, to determine the winner and potential violation information
21
+ * - state info: if they can time out
22
+ * - game result info: violations
23
23
* - listeners: subscribers that get notified about new messages concerning this player, notably Welcome and Errors
24
24
*
25
25
* Note: the toString/equals/hashCode/clone methods only take [team] and [displayName] into account!
@@ -28,7 +28,7 @@ private val logger = LoggerFactory.getLogger(Player::class.java)
28
28
@XStreamAlias(" player" )
29
29
@XStreamConverter(PlayerConverter ::class )
30
30
open class Player @JvmOverloads constructor(
31
- @XStreamAsAttribute var team : ITeam ,
31
+ @XStreamAsAttribute val team : ITeam ,
32
32
@XStreamAsAttribute var displayName : String = " "
33
33
): PublicCloneable<Player> {
34
34
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ interface XStreamProvider {
43
43
}
44
44
45
45
private fun XStreamProvider.load (xStream : XStream ) {
46
- println (" Loading into XStream: $this " )
47
46
LobbyProtocol .registerAdditionalMessages(xStream, this .classesToRegister)
48
47
this .setup(xStream)
49
48
}
You can’t perform that action at this time.
0 commit comments