lundi 2 décembre 2019

Design pattern for werewolf(social deduction) game

I am trying to develop a social deduction game like Werewolf (Mafia).

In the game there are characters which have usable and passive abilities. During the night a player can pick 1 usable ability and choose 0 or more targets. At the end of the night, all abilities happen at the same time, and the next day the results of the abilities are effective.

The usable abilities include: killing someone, preventing someone from using an ability that night, preventing any abilities from being used on someone.

The passive abilities can be immunity to any of the types of usable abilities.

I am looking for a software design pattern / architecture which prevents interdependence between the different abilities.

I'm sorry for the (maybe) generic question, but I've been trying to get my head around this for quite a while.

Aucun commentaire:

Enregistrer un commentaire