samedi 25 avril 2020

Java : Need suggestion on Good Design

I am working on building characters for Dungeons & Dragons Game. The characters have Innate abilities such as Strength, Dexterity, Constitution, Intelligence, Wisdom, Charisama.

My question is: How can I design characters in the game such that the code allows the abilities to be added later without modifying the implementation of character class?

Can you suggest some good design for such problem?

Aucun commentaire:

Enregistrer un commentaire