Move the flag-setting functions for terrain and furniture to be member functions of their structs.