samedi 17 décembre 2016

State Pattern inside MVC Java

I want to implement a game with MVC pattern. I have person class which can be healthy or not etc.(It is a designpattern assignment. And there are 4-5 states of health) According to the health state, its behaviour can be changed. It can be done with state pattern but inside Mvc how can I achieve this? Is it possible to keep model its controller inside itself and main controller make actions via model's controller?

Aucun commentaire:

Enregistrer un commentaire