src/gamemechanics/NeutralTrees.java
public static int shakeBulletTree() throws GameActionException {
		if(rc.canShake()){
			TreeInfo[] trees = rc.senseNearbyTrees(rc.getType().bodyRadius + GameConstants.INTERACTION_DIST_FROM_EDGE, Team.NEUTRAL);
			for (TreeInfo tree : trees) {
				if (tree.containedBullets > 0) {
					rc.shake(tree.getID());
					if(rc.readBroadcast(Broadcast.SCOUT_GOOD_CHANNEL) == 0){
						rc.broadcast(Broadcast.SCOUT_GOOD_CHANNEL, 1);
					}
					return tree.getID();
				}
			}
		}
		return -1;
	}
/**
	 * Shake a nearby Tree, but only if it contains Bullets
	 * @return ID of the shaken Tree, -1 otherwise
	 * @throws GameActionException
	 */
Shake a nearby Tree, but only if it contains Bullets
@return ID of the shaken Tree, -1 otherwise
@throws GameActionException
Shake a nearby Tree but only if it contains Bullets @return ID of the shaken Tree - 1 otherwise @throws GameActionException
public static int shakeBulletTree() throws GameActionException {
		if(rc.canShake()){
			TreeInfo[] trees = rc.senseNearbyTrees(rc.getType().bodyRadius + GameConstants.INTERACTION_DIST_FROM_EDGE, Team.NEUTRAL);
			for (TreeInfo tree : trees) {
				if (tree.containedBullets > 0) {
					rc.shake(tree.getID());
					if(rc.readBroadcast(Broadcast.SCOUT_GOOD_CHANNEL) == 0){
						rc.broadcast(Broadcast.SCOUT_GOOD_CHANNEL, 1);
					}
					return tree.getID();
				}
			}
		}
		return -1;
	}
public static int shakeBulletTree ( ) throws GameActionException { if ( rc . canShake ( ) ) { TreeInfo [ ] trees = rc . senseNearbyTrees ( rc . getType ( ) . bodyRadius + GameConstants . INTERACTION_DIST_FROM_EDGE , Team . NEUTRAL ) ; for ( TreeInfo tree : trees ) { if ( tree . containedBullets > 0 ) { rc . shake ( tree . getID ( ) ) ; if ( rc . readBroadcast ( Broadcast . SCOUT_GOOD_CHANNEL ) == 0 ) { rc . broadcast ( Broadcast . SCOUT_GOOD_CHANNEL , 1 ) ; } return tree . getID ( ) ; } } } return - 1 ; }
Shake a nearby Tree, but only if it contains Bullets
 @return ID of the shaken Tree, -1 otherwise
 @throws GameActionException
Shake a nearby Tree but only if it contains Bullets @return ID of the shaken Tree - 1 otherwise @throws GameActionException