@Override public void newRound(int roundNumber) { super.newRound(roundNumber); updateWeaponGroups(); updateSensors(); loadAllWeapons(); updateSkills(); resetHeatCapacity(); }
/** * Unload the given unit. TODO: need to strip out ammo * * @param unit * - the <code>Entity</code> to be unloaded. * @return <code>true</code> if the unit was contained in this space, * <code>false</code> otherwise. */ @Override public boolean unload(Entity unit) { // Remove the unit if we are carrying it. boolean success = fighters.removeElement(unit.getId()); if (game.getPhase() != Phase.PHASE_LOUNGE) { computeSquadronBombLoadout(); // updateWeaponGroups() and loadAllWeapons() are called in // computeSquadronBombLoadout() } else { updateWeaponGroups(); loadAllWeapons(); } updateSkills(); return success; }
updateWeaponGroups(); loadAllWeapons();
updateWeaponGroups(); loadAllWeapons();