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!

Sheriff, William

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! Learn C++ programming with a fun, real-world application that allows you to create your own games! Learn C++ by creating games with Unreal Engine four by William Sherif - Birmingham, UK Packt Publishing 2015 - 1 digital resource (322 pages) illus. 25 cm - .

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

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.

9781784396572


Computer games --Programming
Computer games --Design
Unreal Script (Computer program language)

005.13 SHE