My problem is quite simple, yet I haven't found any ways of doing this as of this moment.
I need to get the integer "playerHP" working in a subclass. For example, I'm creating a class for all the items my text RPG needs, yet I need them to have an effect on the initial battle. This would mean that they'd for example heal the player. How do I bring the variable from the initial main to the subclass?