Introduction
Let us consider that we are faced with a certain problem. After some time, we find a solution to that problem. Now, if the problem reoccurs, or a similar pattern to the problem reoccurs, we will know how to solve the problem by applying the same principle that solved the previous problem. Design patterns are similar to this. There are already 23 such solutions documented, which provide subtle solutions for dealing with problems that have a similar pattern to the ones that are documented. They are described by the authors more commonly referred to as the Gang of Four. They are not complete solutions, but rather templates or frameworks that can be applied to similar situations. One of the biggest drawbacks of design patterns, however, is that if they are not applied correctly, they can prove to be disastrous. Design patterns can be classified as structural, behavioral, or creational. We will be looking at only a few of them, which are used often in games development.