Understanding the Game Engine Classes
Our simple game engine starts with two core classes: GameController
and Actor
. GameController
is very much like the controller classes from the preceding chapter, except that is has been refined for more-general use. The Actor
class has similarly been improved to accommodate a greater number of Actor
types. The Actor
class also defines two protocols, Representation
and Behavior
, that are used to describe each actor in different ways. The protocol Representation
describes the tasks required to create and update an actor's UIView
. The protocol Behavior
describes a task to be implemented by any class that wishes to create a shared, reusable behavior. These classes and protocols are covered in detail in the following ...
Get Beginning iOS 5 Games Development: Using the iOS 5 SDK for iPad, iPhone, and iPod Touch now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.