I have to implement a java card game. There are two types of cards with similar effects. The problem is that there are 30 cards. Is there an efficient design pattern (factory, decorator, ecc) to avoid creating a specific class for every card? The cards effects are parsed from Json file or from XML file.
Aucun commentaire:
Enregistrer un commentaire