Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 25LCxxx_SPI CommonTypes Gameduino mbed
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
Generated on Tue Jul 12 2022 21:10:36 by
1.7.2