jeudi 2 avril 2015

State pattern with MVC in game development

I want to use MVC and State patterns in a game what I am developing but I don´t know how link both patterns. I think a state (state pattern) is a view from MVC pattern but when app changes the state, how it knows what controller and model must use? I thinked in Facade Pattern but.. I think it is not the best idea.


What is the best practise about it?


Aucun commentaire:

Enregistrer un commentaire