What is the difference between direct and indirect cooking?

Direct cooking is where the food is cooked directly onto the grill or griddle of the barbecue. Indirect cooking is done with the lid down, taking direct heat off the food and using only the burners at the sides to heat up the inside area- similar to cooking in an indoor oven.