Is treasure an instance of type player or is treasure a class of its own?
What is common between player and treasure? Could that be made into its own class or interface?
at the very least make treasure its own class. But it would probably be easier to also make an interface that both player and treasure implements.
Is treasure an instance of type player or is treasure a class of its own? What is common between player and treasure? Could that be made into its own class or interface? at the very least make treasure its own class. But it would probably be easier to also make an interface that both player and treasure implements.