000 03712nam a22003257a 4500
003 OSt
005 20230209022227.0
008 220720b |||||||| |||| 00| 0 eng d
020 _a9781784396572
040 _c0
082 _a005.13 SHE
092 _20
100 _aSheriff, William
245 _aLearning C++ by creating games with UE4 [electronic resource]:
_blearn C++ programming with a fun, real-world application that allows you to create your own games!
_cby William Sherif
246 _aLearn C++ programming with a fun, real-world application that allows you to create your own games!
246 _aLearn C++ by creating games with Unreal Engine four
260 _aBirmingham, UK
_bPackt Publishing
_c2015
300 _a1 digital resource (322 pages)
_billus.
_c25 cm
490 _3Community experience distilled.
500 _aIncludes index.
504 _aEnglish
505 _aCover; 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
520 _aIf 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.
650 _aComputer games
_xProgramming
650 _aComputer games
_xDesign
650 _aUnreal Script (Computer program language)
843 _aPhotocopy
887 _2CamTech Library
942 _2ddc
_cBK
_n0
999 _c435
_d435