Hero Class, php classes
- by John
I am going to have different classes for a character that a user play. Like "Mage, Warrior" etc.
I am thinking of a method like have some CharacterBase class (abstract?) and then I have a child class which is like WarriorClass or something like that.
I think the approach is called Factory pattern or something like that. Anyone got a clue of what I'm trying to achieve here, and are there perhaps any better way to do this?