Model-View-Controller Pattern (MVC) in Bomberman
Author: Martin Lanter
Thanks to Matthias Schelker for proofreading the article.
Abstract: Bomberman is a game written in Java using the Swing library and implementing the Model-View-Controller (MVC) pattern. Much literature can be found in books and online that describes the MVC pattern. They usually contain a small demonstration with one class per model, view and controller respectively. However, they lack a larger demonstration where model and view are compositions of multiple classes. Bomberman’s model and view consist of roughly 25 classes each (without AI). This article explains how they all work together.