8.5. The full cCritter prototype

Here’s a full listing of the cCritter prototype from a recent critter.h header file. For the most current listing, you can examine the file itself inside Visual Studio.

 ////////////////////////////////////////////////////////////////////// // Critter.h: interface for the cCritter class. // ////////////////////////////////////////////////////////////////////// #ifndef CRITTER_H #define CRITTER_H #include “randomizer.h” #include “realbox.h” #include “realpixelconverter.h” #include “vectortransformation.h” #include <mmsystem.h> //For PlaySound flags class cGraphics; #define USEBOUNCINESS /* Compile switch used in critter.cpp, critterwall.cpp, realbox.cpp. */ /* We don’t need to include the headers for the following ...

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.