Hello! I'm making a turn-based battle RPG battle program. Some feature of my game is choosing what type of character (warrior, wizard and archer) and choosing either easy, normal and insane. The problem is i don't know how to create using class so that I can get their hp, mp and attack in one. I'm new to class. Can someone show the snippet of the codes?
you want a constructor that assigns the value, so you can do this
character joebob(wizard, 1000, insane); //creates the new guy with these settings.
where wizard and insane are likely pulled from enums.
you may want to disable the default constructor so they are forced to do the above, or not, as you see fit. If you disable it, you need a setup method to fill them in after the fact and if enabled the default should assign some default values.