Tried to create a basic RPG-Need help with Class/Subclass System
Hey I'm learning C++ by teaching myself. I purchased a book and it was pretty helpful but it doesn't go too in depth into subjects. I previously have experience with C and a little Objective-C experience.
I tried to create a basic RPG text game using classes in order to understand the concepts better. I created a class for the player and a class for monster, and I created a battle system for them to fight, die, etc. However, they only interacted when I entered a code for them to both fight.
How do you create a map? Is that a class of its own with monster and player being a subclass? Or is it completely different?
Do you need a separate class for movement?
Please let me know whatever tips and knowledge you have related to concept. I don't want any code or anything, just explanations so that I can do this right. I learn by example.
Thank you for your time and help.