Hi there, I'm new.
I search the c++ forum for "class", pick the first topic, and what do I find?
Someone with the exact same problem I am having!
I am writing a texst/rpg-type game, and I would like a funktion to be able to access the public variables of an object.
Now, I think Daved said that it
could be done, by passing a refference to the object, that had to be deleted later, and is dangerous.
Ehh, how dangerous is it? And What could it possibly do?
Is there perhaps a safer way, to only let funktions access the public methods of the object? Or would that need the dreaded refference too?
Thank you in advance!