Entry 6: My Text RPG
Published January 02, 2009
I've finished programming everything I had before from the ground up all over again. It didn't take too long but the design is much better. Thanks to jjd for pointing out that I should just pass Player around instead of Gold, Hp, Name, Weapon, ect... I should of thought of this in the first place. I guess it's going to take a little bit before I really start taking advantage of OOP. Since OOP is still new to me and I haven't used it until now, messing up here and there will happen.
Here is my new Menu System:
http://members.gamedev.net/mrcpaw/Source/CPP/Menu.cpp
I know I could of made the Selling Shop neater and did the checks much neater but It works all the same.
Now I'm off to bed and hopefully when I start working in the morning I can finish up the rest of the Battle System. I hope I finish all of this before I gotta go back to work on Monday. I'm really looking forward to getting some graphic games done soon!
Thanks for the feedback and comments! Night!
Also, I am not sure but on this line
cout << "\n\nWeapon: " << PlayerOne.PlayerSetWeapon();
Shouldnt you call PlayerOne.PlayerGetWeapon()? Just thought I would point that out just in case. (also since its in the player class, it doesnt really need to be called PlayerGetWeapon etc, it could just be getWeapon())...
Oh, and for your message system where you say things like weapon sold, not enough gold, etc...
You could just have one function where you pass a string and print it out, that way in a situation where the player does not have enough gold you can just call
PrintMessage("Not enough gold");, rather then having a whole bunch of small functions.
Just some suggestions for things that I saw, I am no way a pro or anything so yea..haha, keep up the good work though i enjoy keeping up with this journal.