도서 정보
도서 상세설명
1: Coding with C++
Setting up our project
Creating your first C++ program
What is building and compiling?
Summary
2: Variables and Memory
Variables
Summary
3: If, Else, and Switch
Branching
Controlling the flow of your program
Using logical operators
Our first example with Unreal Engine
Summary
4: Looping
The while loop
The do/while loop
The for loop
Looping with Unreal Engine
Summary
5: Functions and Macros
Functions
An example of a library function sqrt()
Writing our own functions
Functions with arguments
Functions that return values
Variables, revisited
Macros
Macros with arguments
Summary
6: Objects, Classes, and Inheritance
struct objects
class versus struct
Getters and setters
Constructors and destructors
Class inheritance
Multiple inheritance
Putting your classes into headers
Summary
7: Dynamic Memory Allocation
Dynamic memory allocation
Regular arrays
C++ style dynamic size arrays (new[] and delete[])
Dynamic C-style arrays
Summary
8: Actors and Pawns
Actors versus pawns
Creating a world to put your actors in
The UE4 editor
Starting from scratch
Adding an actor to the scene
Creating a player entity
Writing C++ code that controls the game's character
Creating non-player character entities
Displaying a quote from each NPC dialog box
Summary
9: Templates and Commonly Used Containers
Debugging the output in UE4
UE4's TArray
TSet
TMap
C++ STL versions of commonly used containers
Summary
10: Inventory System and Pickup Items
Declaring the backpack
Base class PickupItem
Drawing the player inventory
Summary
11: Monsters
Landscape
Monsters
Monster attacks on the player
Summary
12: Spell Book
The particle systems
Spell class actor
Attaching right mouse click to cast spell
Creating other spells
Summary
Appendix A: Index