I'm still having trouble understanding the class variables and ways to use them. I don't want everything 'hardwired'. We've got w1 and w2 right now, and I'm not sure how to make a w3-4-5 and populate the parameters through user input.
So is there a way to list the objects (eg, for n=w1 to n=wmax)?
Is there a way to ask the user to enter a new warrior and then create a w3 without having to say "w3"? (like maybe asking for the user to name the new object and using that user input?)
I'm still having trouble understanding the class variables and ways to use them. I don't want everything 'hardwired'. We've got w1 and w2 right now, and I'm not sure how to make a w3-4-5 and populate the parameters through user input.
So is there a way to list the objects (eg, for n=w1 to n=wmax)? Is there a way to ask the user to enter a new warrior and then create a w3 without having to say "w3"? (like maybe asking for the user to name the new object and using that user input?)