1

I'm developing a level editor in Java. I'm designing its code in MVC. From what I've learned: controllers can have a direct reference (fields) to views and models. Views can have direct reference to models but shouldn't have to controllers (they can interact controllers via design patterns such as observers) and models shouldn't have any direct references to any views or controllers (also should use observer). My question is: How should controllers interact each other? Two-way references is not recommended AFAIK, so how should they interact each other? This question can also be relevant between viewers. Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.