it has to be the same class, you could make the different rooms children of an empty parent room or use an interface