I’m working on a RPG engine and I’m considering on how to build the item classes. So far I have an abstract superclass called Item and I am creating new classes for each item that extends that class. I don’t think it’s a good idea though so I’m considering keeping the same Item class and saving items as XML files which can then be loaded when needed. XML would also allow for the items to be implemented outside of the source code and during run time.
I’m using XML as an example here but it’s most likely going to be my choice unless someone can suggest a better method?
Thanks!