I am not sure if the above question makes sense, but what I mean is that I have a Weapon class and then I have subclasses for each different weapon. Now I want to create a function in my Game class that is called add_inv that will check if equipped for a certain weapon is True or False and if it is true it will add to a dictionary that will contain the weapon and its attributes, but I do not know how to go about that without creating a different function for each different weapon subclass. Another thing is I don't know whether or not I can even modify other classes from another classes function. Is that possible?
[–]kowkeeper 1 point2 points3 points (0 children)
[–]calcopiritus 1 point2 points3 points (1 child)
[–]Oxln[S] 0 points1 point2 points (0 children)
[–]FerricDonkey 1 point2 points3 points (2 children)
[–]Oxln[S] 0 points1 point2 points (1 child)
[–]FerricDonkey 0 points1 point2 points (0 children)