Richard Ellingworth / Mbed 2 deprecated RobotRic

Dependencies:   25LCxxx_SPI CommonTypes Gameduino mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GameObjectLocator.h Source File

GameObjectLocator.h

00001 /*
00002  * SOURCE FILE : GameObjectLocator.h
00003  *
00004  * Code for randomly positioning objects.
00005  *
00006  */
00007 
00008 #ifndef GameObjectLocatorIncluded
00009   
00010   #define GameObjectLocatorIncluded
00011 
00012   #include "GameObject.h"
00013   
00014   class GameObjectLocator {
00015   
00016   public :
00017   
00018     /*************************************/
00019     /* POSITION OBJECT RANDOMLY IN ARENA */
00020     /*************************************/
00021     // Pass object to locate in obj.
00022     static void Locate( GameObject *obj );
00023 
00024   private :
00025 
00026     // Indicates which quadrant to put next object in.
00027     static UInt8 quad;
00028     
00029   };
00030   
00031 #endif
00032 
00033 /* END of GameObjectLocator.h */
00034