{"product_id":"113885","title":"Learning Game Design Patterns with Unreal Engine ","description":"\u003ccenter\u003e\u003cdiv style=\"text-align:center\"\u003e\u003cimg src=\"https:\/\/tmgdisk01.cafe24.com\/images\/vs\/4172\/sv\/3jYEgeIfNnXYYU98ujAED5qrVhqQyp.png?v=1765053968\" style=\"max-width:100%;max-height:10px\"\u003e\u003c\/div\u003e\u003c\/center\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003ccenter\u003e\n\n\u003cdiv style=\"width:95%\"\u003e\n\n\u003cdiv style=\"text-align:center;font-size:30px;font-weight:bolder;line-height:1.6em\"\u003e Learning Game Design Patterns with Unreal Engine \u003c\/div\u003e\n\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\n\u003cdiv style=\"border-bottom:1px;border-bottom-style:dotted;border-color:;padding-bottom:20px\"\u003e\u003ccenter\u003e\u003ctable align=\"center\" width=\"100%\"\u003e\u003ctbody style=\"border:0px\"\u003e\n\n\u003ctr\u003e\u003ctd align=\"center\" style=\"line-height:1.2em;text-align:center;font-size:18px;color:black;font-weight:bold;padding-bottom:20px;\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\n\u003ctr\u003e\u003ctd style=\"text-align:center\"\u003e\u003cimg src=\"https:\/\/image.yes24.com\/goods\/161395973\/XL\" style=\"max-width:100%;height:auto\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\u003c\/table\u003e\u003c\/center\u003e\u003c\/div\u003e\n\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\n\u003cdiv style=\"width:95%;{split_style6}padding-top:20px;padding-bottom:20px\"\u003e\n\n\u003cdiv style=\"text-align:left;font-size:16px;font-weight:bold;padding-bottom:20px\"\u003e Description \u003c\/div\u003e\n\n\u003cdiv style=\"text-align:left;word-break:break-all;font-size:14px;line-height:1.6em;\"\u003e\n\n\u003cdiv\u003e\u003ch5\u003e \u003cb\u003eBook Introduction\u003c\/b\u003e\n\u003c\/h5\u003e\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cdiv\u003e\u003cdiv\u003e \u003cb\u003eLearn Practical Unreal 5 C++ Design Patterns from Experts\u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e Design patterns help us write code faster and more maintainable. \u003cbr\u003eThis book explains various design patterns and shows you how to apply them to Unreal Engine 5 projects.\u003cbr\u003e By gaining a deeper understanding of not only design patterns but also how the engine works, you can overcome the limitations you felt in your Unreal development practice.\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e Starting with the fundamentals of Unreal C++ coding and Blueprints, you'll build a solid understanding of the concepts and benefits you need to know when applying patterns to your code.\u003cbr\u003e First, in Part 1, we will look at the patterns built into the core of Unreal Engine 5, such as double buffers, flyweights, space partitioning, components, update methods, and behavior trees.\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e In Part 2, we'll cover how to replace 'ticks', the interface and event observer patterns, and even UML for decoupling references, and write a gameplay example in C++. \u003cbr\u003ePart 3 focuses on leveraging design patterns for pre-release performance optimization, covering behavioral patterns such as singleton, command, and state patterns, template patterns for structuring code, subclass sandboxes, implementing type objects, and finally dirty flags, data locality, and object pooling.\u003cbr\u003e\u003cbr\u003e\n\u003c\/div\u003e\u003c\/div\u003e\n\u003cdiv\u003e\u003cul\u003e\u003cli\u003e You can preview some of the book's contents.\u003cbr\u003e \u003cspan\u003ePreview\u003c\/span\u003e\n\n\u003c\/li\u003e\u003c\/ul\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cbr\u003e\u003cdiv\u003e\u003ch5\u003e \u003cb\u003eindex\u003c\/b\u003e\n\u003c\/h5\u003e\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cdiv\u003e About the Author ix\u003cbr\u003e Translator's introduction x\u003cbr\u003e Introducing the Technical Reviewer xi\u003cbr\u003e Translator's Preface xii\u003cbr\u003e Beta Reader Review xv\u003cbr\u003e Recommendation Preface xvi\u003cbr\u003e Acknowledgments xviii\u003cbr\u003e About this book xix\u003cbr\u003e\u003cbr\u003e PART I Learning from Unreal Engine 5\u003cbr\u003e\u003cbr\u003e CHAPTER 1 Understanding Unreal Engine 5 and Layers 3\u003cbr\u003e 1.1 Technical Requirements 4\u003cbr\u003e 1.2 Introducing Unreal Engine 5 4\u003cbr\u003e 1.3 Installing Unreal Engine 5 and Preparing the Development Environment 6\u003cbr\u003e 1.4 'Fuzzy' Layer: Bridging the Gap Between C++ and Blueprints 9\u003cbr\u003e __1.4.1 Property Specifiers 10 \/ 1.4.2 Function Specifiers 11 \/ 1.4.3 Usefulness of Inheritance 12 \u003cbr\u003e1.5 Converting from Blueprints back to C++ 13\u003cbr\u003e __1.5.1 Working Example 16\u003cbr\u003e 1.6 Summary 19\u003cbr\u003e 1.7 Practice Problem 19\u003cbr\u003e __1.7.1 Correct answer 20\u003cbr\u003e\u003cbr\u003e CHAPTER 2 “Hello, Pattern” 21\u003cbr\u003e 2.1 Technical Requirements 21\u003cbr\u003e 2.2 SOLID Principle 23\u003cbr\u003e __2.2.1 Single Responsibility 23 \/ 2.2.2 Open-Closed 24 \/ 2.2.3 Liskov Substitution 26\u003cbr\u003e __2.2.4 Interface Separation 27 \/ 2.2.5 Dependency Inversion 30\u003cbr\u003e 2.3 Exploring Solutions to Common Problems 31\u003cbr\u003e __2.3.1 Moving Box Problem 32 \/ 2.3.2 Rotating Box Problem 40\u003cbr\u003e __2.3.3 Cascading Cast Chain Problem 43\u003cbr\u003e 2.4 Tradeoff 48\u003cbr\u003e 2.5 Summary 49\u003cbr\u003e\u003cbr\u003e CHAPTER 3 UE5 Patterns in Practice: Double Buffering, Flyweights, and Spatial Partitioning 51\u003cbr\u003e 3.1 Technical Requirements 52\u003cbr\u003e 3.2 Double Buffer 52\u003cbr\u003e 3.3 Flyweight 56\u003cbr\u003e 3.4 Spatial Division 58\u003cbr\u003e __3.4.1 Introducing World Partitions 61\u003cbr\u003e __3.4.2 Understanding When Objects Are Loaded 64\u003cbr\u003e __3.4.3 How to ensure that required actors are loaded 67\u003cbr\u003e __3.4.4 Activating World Partitions at Existing Levels 69\u003cbr\u003e 3.5 Summary 69\u003cbr\u003e \u003cbr\u003eCHAPTER 4 UE5 Built-in Patterns: Components, Update Methods, and Behavior Trees 71\u003cbr\u003e 4.1 Technical Requirements 72\u003cbr\u003e 4.2 Understanding and Creating Components 72\u003cbr\u003e 4.3 Applying the Update Method to Gameplay Prototyping 79\u003cbr\u003e 4.4 Working with Behavior Trees 81\u003cbr\u003e __4.4.1 Creating an AI Controller 84\u003cbr\u003e __4.4.2 Creating Blackboard Assets 85\u003cbr\u003e __4.4.3 Building a Behavior Tree 86\u003cbr\u003e 4.5 Summary 101\u003cbr\u003e\u003cbr\u003e PART II Anonymous Modular Design\u003cbr\u003e\u003cbr\u003e CHAPTER 5 Discarding Ticks 105\u003cbr\u003e 5.1 Technical Requirements 106\u003cbr\u003e 5.2 Before You Begin 106\u003cbr\u003e World 106 returns to 5.3 ticks\u003cbr\u003e 5.4 Stopped Clock 110\u003cbr\u003e 5.5 Event-Based Systems 115\u003cbr\u003e 5.6 Summary 119\u003cbr\u003e\u003cbr\u003e CHAPTER 6 Clean Communication: Interfaces and the Event Observer Pattern 121\u003cbr\u003e 6.1 Technical Requirements 121\u003cbr\u003e 6.2 Inter-class interface communication in UE5 122\u003cbr\u003e __6.2.1 Blueprint Interface 122\u003cbr\u003e __6.2.3 Differences between interface events and functions 126\u003cbr\u003e __6.2.4 Interfaces in C++ 129\u003cbr\u003e __6.2.5 Interface Communication Example Implementation 130 \u003cbr\u003e6.3 Implementing Event Delegate Communication in UE5 132\u003cbr\u003e __6.3.1 Event Delegates in Blueprints 132\u003cbr\u003e __6.3.2 Event Delegates in C++ 136\u003cbr\u003e __6.3.3 Creating Useful Delegate Tools 138\u003cbr\u003e 6.4 Summary 142\u003cbr\u003e\u003cbr\u003e CHAPTER 7 Completely Separated Systems 143\u003cbr\u003e 7.1 Technical Requirements 144\u003cbr\u003e 7.2 Planning a Sample Hierarchy Using UML 144\u003cbr\u003e __7.2.1 Types of Class Relationships 144\u003cbr\u003e __7.2.2 Sequence Diagram 146\u003cbr\u003e 7.3 Separating Reference Connections 147\u003cbr\u003e __7.3.1 Modularization and Separation 147\u003cbr\u003e __7.3.2 Infrastructure Construction 151\u003cbr\u003e __7.3.3 Applying Separate Design to an Example 152\u003cbr\u003e __7.3.4 Advantages of Separation 163\u003cbr\u003e 7.4 Summary 164\u003cbr\u003e\u003cbr\u003e PART III Working with Unreal\u003cbr\u003e\u003cbr\u003e CHAPTER 8 Building Design Patterns: Singletons, Commands, and State 167\u003cbr\u003e 8.1 Technical Requirements 167\u003cbr\u003e 8.2 Implementing the Singleton Pattern: Understanding Why This is Pandora's Box 168\u003cbr\u003e 8.3 Implementing Command Patterns for Various Use Cases 170\u003cbr\u003e __8.3.1 Command Pattern for Undo Function in Editor Utility 172 \u003cbr\u003e__8.3.2 Command Patterns for Gameplay in C++ 177\u003cbr\u003e 8.4 Creating a Multi-Layer State Machine Structure 180\u003cbr\u003e __8.4.1 Understanding Animation State Machines 181\u003cbr\u003e __8.4.2 Enumeration\/Switch Implementation 183\u003cbr\u003e __8.4.3 Static State and Instanced State 185\u003cbr\u003e __8.4.4 Concurrent State Machines 187\u003cbr\u003e __8.4.5 Hierarchical State Machine 189\u003cbr\u003e __8.4.6 Pushdown Automata 190\u003cbr\u003e 8.5 Summary 191\u003cbr\u003e\u003cbr\u003e CHAPTER 9 Structuring Code Using Behavioral Patterns: Templates, Subclass Sandboxes, and Type Objects 193\u003cbr\u003e 9.1 Technical Requirements 194\u003cbr\u003e 9.2 Examining Template Patterns 194\u003cbr\u003e __9.2.1 Creating a Template (Parent Class) 196\u003cbr\u003e __9.2.2 Creating a Child Class 198\u003cbr\u003e __9.2.3 Template Pistol 200\u003cbr\u003e __9.2.4 Template Shotgun 205\u003cbr\u003e 9.3 Understanding the Subclass Sandbox Pattern 207\u003cbr\u003e __9.3.1 Creating a Sandbox (Parent Class) 208\u003cbr\u003e __9.3.2 Creating a Child Class 211\u003cbr\u003e __9.3.3 Sandbox Pistol 211\u003cbr\u003e __9.3.4 Sandbox Shotgun 213\u003cbr\u003e 9.4 Type Object Pattern 215 \u003cbr\u003e__9.4.1 Variants 216 \/ 9.4.2 Data Tables 217 \/ 9.4.3 Data Assets 218\u003cbr\u003e 9.5 Summary 222\u003cbr\u003e\u003cbr\u003e CHAPTER 10 Optimization through Patterns 223\u003cbr\u003e 10.1 Technical Requirements 224\u003cbr\u003e 10.2 Using dirty flags to reduce unnecessary processing 224\u003cbr\u003e __10.2.1 Applying the dirty flag 225\u003cbr\u003e 10.3 The Impact of Data Locality on Code Efficiency 226\u003cbr\u003e __10.3.1 Hot\/Cold Split 227\u003cbr\u003e __10.3.2 Contiguous Arrays 228\u003cbr\u003e 10.4 Object Pooling: Resource Management to Save Time 229\u003cbr\u003e __10.4.1 Implementing Object Pooling 229\u003cbr\u003e __10.4.2 Creating an Object Pool 231\u003cbr\u003e 10.5 Summary 241\u003cbr\u003e\u003cbr\u003e Search 244\u003c\/div\u003e\n\u003cdiv\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cbr\u003e\u003cdiv\u003e\u003ch5\u003e \u003cb\u003eDetailed image\u003c\/b\u003e \u003c\/h5\u003e\u003c\/div\u003e\n\u003cdiv\u003e\u003cdiv\u003e\u003cimg src=\"https:\/\/image.yes24.com\/momo\/TopCate5941\/MidCate007\/594060843.jpg\" border=\"0\" alt=\"Detailed Image 1\"\u003e\u003c\/div\u003e\u003c\/div\u003e\n\u003cbr\u003e\u003cdiv\u003e\u003ch5\u003e \u003cb\u003eInto the book\u003c\/b\u003e\n\u003c\/h5\u003e\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cdiv\u003e\n\u003cdiv\u003e It is a good standard practice to only instantiate Blueprint classes in the world.\u003cbr\u003e This makes it easier to debug classes and link references.\u003cbr\u003e Because the editor has all the visual tools for execution tracing built in. \u003cbr\u003eAnd when class names change or directories are moved, live links, not text-based ones, are applied to prevent crashes.\u003cbr\u003e \/ To make this inheritance strategy work well, it's helpful to think about the system from an abstract gameplay perspective.\u003cbr\u003e What classes influence mechanics? Expressing these classes in C++ is efficient and allows for hierarchical design.\u003cbr\u003e From there, we inherit the blueprint class at the end of each branch.\u003cbr\u003e\u003cbr\u003e --- p.12\u003cbr\u003e\u003cbr\u003e It's helpful to imagine a painter operating a copy machine.\u003cbr\u003e The artist was commissioned to send at least two copies of every painting he created, so he cleverly decided to use a photocopier to make copies of his works.\u003cbr\u003e To save time transferring your work from the easel to the copier, simply place your canvas directly on the scanner. \u003cbr\u003eThen draw as fast as you can while simultaneously pressing the copy button.\u003cbr\u003e Then there is a race where the artist must draw lines faster than the scanning head.\u003cbr\u003e If successful, the artwork and copy will look identical and no additional time will be required.\u003cbr\u003e But in most cases, the scanning head is ahead of the painter and only draws up to the point where it overtakes the painter, leaving the rest as a blank copy.\u003cbr\u003e This is called frame tearing (p.frame tearing), and this is the problem that the double buffer pattern is trying to solve.\u003cbr\u003e\u003cbr\u003e --- p.52\u003cbr\u003e\u003cbr\u003e It's easy to handle stamina values.\u003cbr\u003e All you need to do is define a float variable to track the current value and another variable to set the maximum value in the editor.\u003cbr\u003e With this in mind, setting property specifiers in the UPROPERTY block is the most important part.\u003cbr\u003e The damage map can also be handled very simply. \u003cbr\u003eThis is because Unreal Engine 5 has a damage interface system that propagates to all AActors.\u003cbr\u003e To attach this hook, you need to handle the OnTakeAnyDamage event as shown in the following HealthComponent.h code snippet:\u003cbr\u003e All you need is a function that shares the same signature as .\u003cbr\u003e\u003cbr\u003e --- p.76\u003cbr\u003e\u003cbr\u003e Now if you test the system by pressing play in the viewport, you should be able to select the green character and move it near the red character.\u003cbr\u003e When the green character stops, you must find the nearest target, change direction, and generate a Shoot print string.\u003cbr\u003e This will continue until the target is no longer valid, at which point it will continue forever as it will not deal any damage to the target unit.\u003cbr\u003e Also, there is currently no way to get the AI ​​out of the BTT_ShootTarget task, so once it finds the target, it cannot move the character. \u003cbr\u003e\/ To inflict damage on an enemy unit, you need to use the Health component you created earlier to replace the Print String node of the BP_EliteUnit Attack Target event with some logic to check the crosshair and then apply the damage.\u003cbr\u003e\u003cbr\u003e --- p.98\u003cbr\u003e\u003cbr\u003e The next useful piece of information to pass to the component is a signal that is emitted whenever damage is inflicted.\u003cbr\u003e There are several options for the data to be transmitted.\u003cbr\u003e For example, if you are developing a Call of Duty-style game, you will need to provide the player with some form of UI that identifies the direction from which damage is delivered.\u003cbr\u003e The example below conveys information about the change that just occurred, the new health value, and the maximum health value.\u003cbr\u003e This allows you to update UI health bars and, in some cases, generate damage figures in the world.\u003cbr\u003e\n\u003c\/div\u003e\n\u003cdiv\u003e --- p.245\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cbr\u003e\u003cdiv\u003e\u003ch5\u003e \u003cb\u003ePublisher's Review\u003c\/b\u003e\n\u003c\/h5\u003e\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cdiv\u003e - Understanding the essence and usefulness of design patterns \u003cbr\u003e- Understanding layers and how they work in Unreal Engine 5\u003cbr\u003e - Understanding the relationship between Unreal Engine 5 C++ code and Blueprints\u003cbr\u003e - Learn about design patterns found in existing features of Unreal Engine 5.\u003cbr\u003e - Examining the purpose of design patterns applied to Unreal Engine 5\u003cbr\u003e - Creatively apply design patterns to existing code to solve common problems.\u003cbr\u003e\n\u003c\/div\u003e\n\u003cdiv\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\n\u003cdiv style=\"width:95%;padding-top:20px;padding-bottom:20px\"\u003e\n\n\u003cdiv style=\"text-align:left;font-size:16px;font-weight:bold;padding-bottom:20px\"\u003e GOODS SPECIFICS \u003c\/div\u003e\n\n\u003cdiv style=\"text-align:left;font-size:14px;line-height:1.6em;\"\u003e\n\n\u003cdiv style=\"width:100%;margin-bottom:5px;line-height:1.6em;font-size:14px\"\u003e - \u003cstrong\u003eDate of issue:\u003c\/strong\u003e November 13, 2025\u003c\/div\u003e\n\n\u003cdiv style=\"width:100%;margin-bottom:5px;line-height:1.6em;font-size:14px\"\u003e - \u003cstrong\u003eFormat:\u003c\/strong\u003e Paperback book binding method guide\u003c\/div\u003e\n\n\u003cdiv style=\"width:100%;margin-bottom:5px;line-height:1.6em;font-size:14px\"\u003e - \u003cstrong\u003ePage count, weight, size:\u003c\/strong\u003e 264 pages | 188*245*16mm\u003c\/div\u003e\n\n\u003cdiv style=\"width:100%;margin-bottom:5px;line-height:1.6em;font-size:14px\"\u003e - \u003cstrong\u003eISBN13:\u003c\/strong\u003e 9791194587538 \u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\u003ccenter\u003e\n\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\n\u003cspan\u003e\u003c\/span\u003e\n\n\u003c\/center\u003e\n\n\n\u003c\/center\u003e","brand":"LIBRAIRIE COREENNE","offers":[{"title":"Default Title","offer_id":43893079932970,"sku":"113885","price":49.96,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0683\/2750\/5962\/files\/b57d9e9c4715e37f9553d6ecb1ed0dd8.jpg?v=1765387714","url":"https:\/\/librairie.coreenne.fr\/en\/products\/113885","provider":"LIBRAIRIE COREENNE","version":"1.0","type":"link"}