From 54cd144e8a070e4b89baa86361db95280939d001 Mon Sep 17 00:00:00 2001 From: Timothée Floure Date: Thu, 31 Mar 2016 13:07:11 +0200 Subject: Remove (useless ?) cast to HasSet in GameState/nextBoard --- src/ch/epfl/xblast/server/GameState.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java index 4b00c3e..32edf5d 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java @@ -126,9 +126,9 @@ public final class GameState { for (Sq blockSq : blocks0) { int cellId = blocks0.get(i).hashCode(); Block block = blockSq.head(); - if (((HashSet) consumedBonuses).contains(cellId) && block.isBonus()) { + if (( consumedBonuses).contains(cellId) && block.isBonus()) { blocks1.add(Sq.constant(Block.FREE)); - } else if (((HashSet) blastedCells1).contains(cellId) && (block == Block.DESTRUCTIBLE_WALL || block.isBonus())) { + } else if ((blastedCells1).contains(cellId) && (block == Block.DESTRUCTIBLE_WALL || block.isBonus())) { if (block == Block.DESTRUCTIBLE_WALL) { Block bonus = randomBonus(); blocks1.add(Sq.repeat(Ticks.WALL_CRUMBLING_TICKS, Block.CRUMBLING_WALL).concat(Sq.constant(bonus))); -- cgit v1.2.3