Original Post
Hi long time reader, first time poster.. I am creating a texted based RPG. I have a base class (cItems) which stores a linked list of items with functions to Add, Delete and Search and each item has a unique ID. I have a derived class called cCharacter , which organises the main character, Health, Mana, Strength etc, it also has details of what the character is carrying (An ID number corresponding to an Item in cItems). When requiring information on character inventory I would use Search(ID Number from character inventory). My first question is, will each of the instances of cCharacter eg Player and Monster1 use the same Item list or will each have a copy of there own Item list. I will also want to implement a cRoom class, which reads in data from file for each room, which will need to access the Item class and the Character class also. My second question, where would the cRoom class be best placed? Comments would be appreciated , Andy