O'Reilly logo

Software Engineering and Computer Games by Rudy Rucker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required