garrison , tavi realized , was quite simply a standard legion camp built from stone instead of canvas and wood , barracks replacing tents , stone walls and battlements replacing portable wooden palisades .