question: public boolean damageDockCollar ( ) { boolean result = false ; Vector < DockingCollar > potential ; potential = new Vector < DockingCollar > ( ) ; Enumeration < Transporter > iter = transports . elements ( ) ; while ( iter . hasMoreElements ( ) ) { Transporter next = iter . nextElement ( ) ; if ( next instanceof DockingCollar ) { DockingCollar nextDC = ( DockingCollar ) next ; if ( ! nextDC . isDamaged ( ) ) { potential . add ( nextDC ) ; } } } if ( potential . size ( ) > 0 ) { DockingCollar chosenDC = potential . elementAt ( Compute . randomInt ( potential . size ( ) ) ) ; chosenDC . setDamaged ( true ) ; result = true ; } return result ; }
target:  Damages a randomly determined docking collar on the entity, if one exists