diff options
author | Pacien TRAN-GIRARD | 2016-05-09 14:10:52 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-05-09 14:10:52 +0200 |
commit | 6dc49829aa2bb4a2767d2c2d0c361cdcf8804dcd (patch) | |
tree | 9ed75b97301150df96a5ff1d68c07346f499ed07 /src/ch | |
parent | d7c29fd93719727544f22d079ca098750d98edb1 (diff) | |
download | xblast-6dc49829aa2bb4a2767d2c2d0c361cdcf8804dcd.tar.gz |
Add missing doc-block
Diffstat (limited to 'src/ch')
-rw-r--r-- | src/ch/epfl/xblast/client/GameStateDeserializer.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ch/epfl/xblast/client/GameStateDeserializer.java b/src/ch/epfl/xblast/client/GameStateDeserializer.java index 143641d..2c06dbc 100644 --- a/src/ch/epfl/xblast/client/GameStateDeserializer.java +++ b/src/ch/epfl/xblast/client/GameStateDeserializer.java | |||
@@ -190,6 +190,13 @@ public final class GameStateDeserializer { | |||
190 | .collect(Collectors.toList())); | 190 | .collect(Collectors.toList())); |
191 | } | 191 | } |
192 | 192 | ||
193 | /** | ||
194 | * Unserializes a byte representation of the ticks. | ||
195 | * | ||
196 | * @param serializedTicks the serialized ticks | ||
197 | * @return the ticks | ||
198 | * @throws IllegalArgumentException if the byte chunk is invalid. | ||
199 | */ | ||
193 | private static int deserializeTicks(List<Byte> serializedTicks) { | 200 | private static int deserializeTicks(List<Byte> serializedTicks) { |
194 | if (Objects.isNull(serializedTicks) || serializedTicks.size() != SERIALIZED_TICKS_LENGTH) | 201 | if (Objects.isNull(serializedTicks) || serializedTicks.size() != SERIALIZED_TICKS_LENGTH) |
195 | throw new IllegalArgumentException(); | 202 | throw new IllegalArgumentException(); |