the castle which served as headquarters for the port , built in stone , remained largely intact but for the gaping and scorched roof ; the guns , which had been useless to defend her , fixed as they were outward to sea , were all gone , as were the heaped piles of round-shot from the courtyard .