question: public boolean canLoad ( Entity unit , boolean checkElev ) { if ( this instanceof Infantry ) { return false ; } if ( ! unit . isEnemyOf ( this ) ) { Enumeration < Transporter > iter = transports . elements ( ) ; while ( iter . hasMoreElements ( ) ) { Transporter next = iter . nextElement ( ) ; if ( next . canLoad ( unit ) && ( ! checkElev || ( unit . getElevation ( ) == getElevation ( ) ) ) ) { return true ; } } } return false ; }
target:  Determines if this object can accept the given unit. The unit may not be of the appropriate type or there may be no room for the unit.