I am currently working on a project that works very much like a text adventure. Each room in the "world" is a structure defined as follows:
Each room will also have items that can be picked up and moved to other rooms. My questions is this--should I store these items in linked lists, wherein each room has its own linked list, and the user has a personal linked list that acts as his/her "inventory"? If I do things this way, will I need to change anything in the structure areas?Code:typedef struct Area { char *name; //name of the area char *desc; //description of the area int exit[4]; //exits the area can make } Area;