#1113 Link uml-reverse-mapper created class diagrams to readme, where needed

This commit is contained in:
Ilkka Seppälä
2019-12-07 20:01:13 +02:00
parent 0685a505d3
commit b09b100614
161 changed files with 246 additions and 64 deletions

View File

@ -12,6 +12,14 @@ tags:
## Intent
Update method pattern simulates a collection of independent objects by telling each to process one frame of behavior at a time.
## Explanation
The game world maintains a collection of objects. Each object implements an update method that simulates one frame of the objects behavior. Each frame, the game updates every object in the collection.
To learn more about how the game loop runs and when the update methods are invoked, please refer to Game Loop Pattern.
## Class diagram
![alt text](./etc/update-method.urm.png "Update Method pattern class diagram")
## Applicability
If the Game Loop pattern is the best thing since sliced bread, then the Update Method pattern is its butter. A wide swath of games featuring live entities that the player interacts with use this pattern in some form or other. If the game has space marines, dragons, Martians, ghosts, or athletes, theres a good chance it uses this pattern.
@ -25,11 +33,6 @@ Update methods work well when:
- The objects need to be simulated over time.
## Explanation
The game world maintains a collection of objects. Each object implements an update method that simulates one frame of the objects behavior. Each frame, the game updates every object in the collection.
To learn more about how the game loop runs and when the update methods are invoked, please refer to Game Loop Pattern.
## Credits
* [Game Programming Patterns - Update Method](http://gameprogrammingpatterns.com/update-method.html)
* [Game Programming Patterns - Update Method](http://gameprogrammingpatterns.com/update-method.html)

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB