4 ms·
You haven't convinced me with that at all, honestly. You can also have the spell on the wand and require n mana to be put into it for activation (argument), no
by 411111111111111 4y ago
You haven't convinced me with that at all, honestly.
You can also have the spell on the wand and require n mana to be put into it for activation (argument), now warrior type goblins won't be able to use it either.
There is no "correct way" with OOP: There are as many ways as you've got the energy to think about and all of them are leaky somewhere. You can still write maintainable code with it, but making it sound clear and obvious where what should go is just wrong.
It heavily depends on a multitude of factors and can get nauseatingly complex at times
- rawoke083600 4y agoThis ! Each answer here as to where to put it is different or breaks down in different scenarios. While none of the OOP solutions are outright wrong, neither one are "obviously right".