I guess that the Fight class would not be of that type but it would be using the attributes from both the Monster and Hero class. So i guess it would not need to inherent from these classes. Would...
Type: Posts; User: chadmandoo
I guess that the Fight class would not be of that type but it would be using the attributes from both the Monster and Hero class. So i guess it would not need to inherent from these classes. Would...
OK this is a theoretical question. Say that I am creating a game that has a Hero() class, Monster(), and Fight() class. Say that the fight class takes hp/str/defense from the monster and hero class...
This makes very good sense. But why change a value through a pointer instead of changing it through the variable itself? Can an pointer reference to a variable in a different class than it is in? ...
Nope, that might help eh?
Can anyone put this into terms that I would understand? I am a noob trying to learn C++. Also anyone have good tutorials for C++? I am trying to learn C++ and Microsoft Visual C++ at the same time.