playerFlags = new HashMap( this.getNoOfPlayers() );
playerFlags = new Hashtable( this.getNoOfPlayers() );
    public boolean checkForMagneticClamp() {        // Declare local variables.        Player          player = null;        Entity          unit = null;        boolean         result;        Map             playerFlags = null;        Enumeration     enum = null;        Iterator        units = null;        Mounted         equip = null;        String          name = null;        // Assume that we don't need new transporters.        result = false;        // Create a map of flags for the players.        playerFlags = new HashMap( this.getNoOfPlayers() );        // Walk through the game's entities.        units = this.entities.iterator();        while ( units.hasNext() ) {            // Is the next unit a Battle Armor squad?            unit = (Entity) units.next();            if ( unit instanceof BattleArmor ) {                // Does the unit have a Magnetic Clamp?                enum = unit.getMisc();                while ( enum.hasMoreElements() ) {                    equip = (Mounted) enum.nextElement();                    name = equip.getType().getInternalName();                    if ( BattleArmor.MAGNETIC_CLAMP.equals( name ) ){                        // The unit's player needs new transporters.                        result = true;                        playerFlags.put( unit.getOwner(), Boolean.TRUE );                        // Stop looking.                        break;                    }                }            } // End unit-is-BattleArmor        } // Handle the next entity.