A pooled player shooting model
We will use an OOP (object-oriented programming) design approach to the player shooting setup, allowing for easy future extensibility of new types of weapons and projectiles.
Creating the pooled player shooting model
Let’s consider the following class diagram:
Figure 6.1 – A pooled player shooting UML class diagram
Figure 6.1 presents a UML diagram. UML stands for Unified Modeling Language, and it’s a standardized approach to specifying and visualizing the relationships of artifacts within software projects. There are several types of UML diagrams, each serving a specific purpose. The class diagram we’re using displays the static structure of a system, including classes, attributes, methods, and their relationships. It’s one of the most widely used diagrams in software architecture.
Additional reading | UML diagram
UML: https://www.uml.org/what-is-uml.htm
PlantUML Language...