TY - BOOK AU - Sheriff, William TI - Learning C++ by creating games with UE4 [electronic resource]: learn C++ programming with a fun, real-world application that allows you to create your own games! SN - 9781784396572 U1 - 005.13 SHE PY - 2015/// CY - Birmingham, UK PB - Packt Publishing KW - Computer games KW - Programming KW - Design KW - Unreal Script (Computer program language) N1 - Includes index; English; Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Coding with C++; Setting up our project; Using Microsoft Visual C++ on Windows; Using XCode on a Mac; Creating your first C++ program; Semicolons; Handling errors; Warnings; What is building and compiling?; Scripting; Exercise -- ASCII art; Summary; Chapter 2: Variables and Memory; Variables; Declaring variables -- touching the silicon; Reading and writing to your reserved spot in memory; Numbers are everything; More on variables; Math in C++; Exercises Branching code in more than two waysThe else if statement; Exercise; Solution; The switch statement; Switch versus if; Exercise; Solution; Summary; Chapter 4: Looping; The while loop; Infinite loops; Exercises; Solutions; The do/while loop; The for loop; Exercises; Solutions; Looping with Unreal Engine; Summary; Chapter 5: Functions and Macros; Functions; An example of a library function -- sqrt(); Writing our own functions; A sample program trace; Exercise; Solution; Functions with arguments; Functions that return values; Exercises; Solutions; Variables, revisited; Global variables Local variablesThe scope of a variable; Static local variables; Const variables; Function prototypes; .h and .cpp files; prototypes.h contains; funcs.cpp contains; main.cpp contains; Extern variables; Macros; Advice -- try to use const variables where possible; Macros with arguments; Advice -- use inline functions instead of macros with arguments; Summary; Chapter 6: Objects, Classes, and Inheritance; struct objects; Member functions; The this keyword; Strings are objects?; Invoking a member function; Exercises; Solutions; Privates and encapsulation; Some people like it public Class versus structGetters and setters; Getters; Setters; But what's the point of get/set operations?; Constructors and destructors; Class inheritance; Derived classes; Syntax of inheritance; What does inheritance do?; is-a relationship; protected variables; Virtual functions; Purely virtual functions (and abstract classes); Multiple inheritance; private inheritance; Putting your classes into headers; .h and .cpp; Exercise; Summary; Chapter 7: Dynamic Memory Allocation; Dynamic memory allocation; The delete keyword; Memory leaks; Regular arrays; The array syntax; Exercise; Solutions N2 - If you are really passionate about games and have always wanted to write your own, this book is perfect for you. It will help you get started with programming in C++ and explore the immense functionalities of UE4 ER -