Why Dependencies are Bad and How To Avoid Them In Unreal Engine | UE5
Ali Elzoheiry Ali Elzoheiry
28K subscribers
21,993 views
0

 Published On Mar 4, 2024

The Mediator Pattern:
Software Design Patterns are like a guide on how to write good code, whether you're using Blueprints or C++, knowing good software practices is a MUST!

This video goes over the mediator pattern to build a "Combat manager" to coordinate actions between multiple enemies and the player.
We will also be combining the mediator pattern with the observer pattern from the previous video to create an "Event Manager"

Download the project files and support my channel on Patreon
  / alizoh  

Join my Discord server to chat and mingle with the community
  / discord  

Additional Resources:
https://refactoring.guru/design-patte...
https://www.gdquest.com/tutorial/godo...

Chapters:
00:00 The Problem
00:33 What We'll Be Learning
01:21 What Mistake To Avoid?
02:20 What Is The Mediator Pattern?
03:20 Creating The Combat Manager Class
04:39 How To Communicate With The Mediator?
12:44 Testing The Combat Manager
14:37 The Problem With The Observer Pattern
15:31 The Event Manager
21:51 How To Use An EventManager Interface
24:16 Summary
25:19 Why Use Software Design Patterns?
26:09 What's Next?


About me:
I've been learning game development for a few years now, I have a background in software engineering, and I also have a background in education, so being able to combine my love of gaming, software engineering and education is the best way to spend my time.

I am currently working on a few unreal engine games as a hobby, but I am also trying to build a community, thus I am creating YouTube tutorials to find others who are interested in game development and design.


#unrealengine5 #MediatorPattern #tutorial #unrealengine #ue5 #gamedev #softwaredesign #software #designpatterns #cleancode

show more

Share/Embed