I am programming an RPG, and I want the Character object to create objects that control their "powers"
Each charcter has a String variable powerOne, PowerTwo etc. Ex. powerOne = "Attack"
I need a way to do this:
"powerOne" powerOne = new "powerOne"
(Need the computer to use string in place of the actual power because they are replaced once characters learn new ones.)
That way, I can always reference the power in the rest of the code as powerOne. Ex. powerOne.dealDamage()