Review questions

A What are some child classes of the cCritter class?
B What are the cCritter methods most commonly overridden?
C What are the three classes to which the cCritter delegates functionality?
D In updating the critter’s motion, what do we do to keep the critter from running off towards infinity or from acquiring an unrealistically large velocity?
E What is the meaning of the information in the cCritter ’s _outcode field?
F Why is the cCritter draw method code an example of the Template Method pattern?

Get Software Engineering and Computer Games 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.