Original Post
Hy. I'm still reading this article: http://www.gamasutra.com/features/20050414/rouwe_01.shtml on the mvc applyed to the game design. I'm not understand: 1)
Quote:Isn't simple that the controller call methods on entity? why this design implementation? 3)how the controller change the return of this methods ? It must have access to the world game for do that!? How the world is rappresented and how the controller have access to it and then change for each entity the result of these methods? 4)how the entities are updated?and how a entity influence other entities? thanks.
The Controller can't directly change the state of the Entity. Every update the Controller is polled by the Entity and the Entity tries to follow the Controllers instructions. For example, the Controller would never call a MoveTo() function on a Humanoid but instead the Humanoid would poll the Controller's GetDesiredSpeed() function and then try to reach this speed while performing collision detection to make sure not to clip through walls.