Review questions


What does the default cCritter::collide method do? Which quantities does it conserve?


How many pairs of critters can be found in a set of ten critters? In a set of 100 critters?


What is the meaning of the cCritter _collidepriority field? How is it used in the cCritter::collidesWith method? And, finally, where is the collidesWith method used?


Where does the Pop Framework keep a cCollider *_pcollider object? What is the purpose of this cCollider object?


Why does the Pop Framework choose to implement cCollider as a linked list instead of as an array?


How does the cCritterWall::collide differ from the normal cCritter::collide ?

    Part I: Software Engineering and Computer Games
    Part II: Software Engineering and Computer Games Reference