}
}
System.out.println(strm.getRoundId() - roundId);
} else if (gm instanceof BuildCreepRoundMessage) {
BuildCreepRoundMessage bcrm = (BuildCreepRoundMessage) gm;
Creep c = CreepFactory.createCreep(this, IConstants.Creeps.valueOf(
IConstants.Creeps.class, bcrm.getCreepType()));
c.setBuildTime((int) (bcrm.getRoundId() - roundId));
c.setSenderId(bcrm.getSenderId());
c.setPlayerID(bcrm.getPlayerId());
if (!this.isDead()) {
this.getCreeps().add(c);
} else {
this.getTransfer().add(c);
}
System.out.println("build creep: " + (bcrm.getRoundId() - roundId));
// play sound now
if (managementSound != null) {
managementSound.creepStartsSound(c.getType());
}