jonasdahl / inda-minigame

0 stars 0 forks source link

Item class hierarchy #2

Closed lericson closed 10 years ago

lericson commented 10 years ago

It seems that the Item class does pretty much everything every item can do. Why not have specialized items, like "UseableItem" or so? All are items usable?

jonasdahl commented 10 years ago

Having subclasses makes the distinction between the different items easier, i think. There is quite a difference between a person (that needs to be able to talk, interact and receive stuff) and a beamer that should be able to be charged and fired. But still, both are quite the same. Just my thought. And as before, i had big dreams with this game :)

lericson commented 10 years ago

Very well, I think you're right - I was saying that maybe the Item class does too much, but I'm not sure of I think so 100%.