What is it called when a building...?

What is it called when a building has a living space and such but its the whole building. Then around that building there are houses containing bedrooms. Sort of like a mess hall or a something where people go to hang out.
6 answers 6