break;
}
}
} else if (gm instanceof ChangeStrategyRoundMessage) {
ChangeStrategyRoundMessage csm = (ChangeStrategyRoundMessage) gm;
// find the tower we want to change
for (Tower tower : towers) {
if (tower.getId() == csm.getTowerId() && tower.isReady()) {
FindCreepStrategy fcs = StrategyFactory.getStrategyForName(
csm.getStrategyType(), tower);
fcs.setCreepLock(csm.isLocked());
((AbstractTower) tower).setChangeStrategyTime((int)(csm.getRoundId() - roundId));
((AbstractTower) tower).setSelectedStrategy(fcs);
break;
}
}