Skip to content

Clean Architecture

Jaffar edited this page Dec 8, 2022 · 5 revisions

Introduction

The following is a guide to the clean architecture we implemented in our game, all credit to Uncle Bob! Screenshot 2022-12-08 at 14 32 12

A typical scenario

The following is a typical scenario for a local java system when pausing the screen in RoGap;

The view gathers keyboard input from the user and passes it to the PauseGameController controller. This controller packages the data into a plain java object and passes it through the PauseGameInputBoundary to the GameLoopInteractorReference interactor. The GameLoopInteractorReference interprets that data and uses it to control the density of the program's components associated with pausing the screen. Upon completion, the GameLoopInteractorReference gathers data from the entities and constructs it as another java object. The output data is then passed through the UpdateScreenBoundary to the GameScreenPresenter presenter which repackages the output data into a viewable model as a view model. the view finally moves the data from the view model to the screen!

Clone this wiki locally