Original Post
I'm looking at how to use databases for a MMORPG style game but am having some difficulty with how to format the databases. The following is what I had in mind for the structure of the game objects using C++ inheritance:
Game Element
|
______/ \______
/ / \ \
Area Room Exit Item
/
Character
Basically everything is a Game Elements with a name and description (and what ever else might come to be common). Also everything you can pick up or perform certian actions on are items, a character being one since I wanted to be able to pick up and throw characters :) I was considering trying to port this to a database with every class becoming a table but I'm having issues with how to properly represent inheritance in databases where multiple tables can inherit from a single one causing strange behavior. Any suggestions or am I going the wrong direction? Thanks.