managementSound.playerWonSound();
}
}
if (gm instanceof BuildTowerRoundMessage) {
BuildTowerRoundMessage btrm = (BuildTowerRoundMessage) gm;
Grid grid = this.gameBoard.getGrid((int) btrm.getTowerPosition()
.getX(), (int) btrm.getTowerPosition().getY());
if (grid.isFree()) {
Tower t = TowerFactory.createTower(this, IConstants.Towers
.valueOf(IConstants.Towers.class, btrm.getTowerType()),
grid);
t.setBuilding(true);
t.setBuildTime((int) (btrm.getRoundId() - roundId));
t.setId(btrm.getTowerId());
this.addtower(t);
System.out.println(btrm.getRoundId() - roundId);
}
} else if (gm instanceof UpgradeTowerRoundMessage) {
UpgradeTowerRoundMessage utrm = (UpgradeTowerRoundMessage) gm;
Tower upgradeTower;