Teacher confused about MVC?

Posted by Gideon on Stack Overflow See other posts from Stack Overflow or by Gideon
Published on 2013-11-09T09:26:42Z Indexed on 2013/11/09 9:53 UTC
Read the original article Hit count: 194

Filed under:
|

I have an assignment to create a game in java using MVC as a pattern. The thing is that stuff I read about MVC aren't really what the teacher is telling me.

What I read is that the Model are the information objects, they are manipulated by the controllers. So in a game the controller mutates the placement of the objects and check if there is any collision etc.

What my teacher told me is that I should put everything that is universal to the platform in the models and the controllers should only tell the model which input is given. That means the game loop will be in a model class, but also collision checks etc. So what I get from his story is that the View is the screen, the Controller is the unput handeler, and the Model is the rest.

Can someone point me in the right direction?

© Stack Overflow or respective owner

Related posts about java

Related posts about mvc