Hero Class, php classes

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2011-11-18T17:44:19Z Indexed on 2011/11/18 17:50 UTC
Read the original article Hit count: 205

Filed under:

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?

© Stack Overflow or respective owner

Related posts about php