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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.