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
Diff: PlayerObject.h
- Revision:
- 5:0b0651ac7832
- Parent:
- 4:673eb9735d44
--- a/PlayerObject.h Sat Jun 08 11:24:05 2013 +0000
+++ b/PlayerObject.h Sat Jun 08 14:40:47 2013 +0000
@@ -77,23 +77,26 @@
/************************/
/* DRAW THE GAME OBJECT */
/************************/
+ // Pass pointer to Gameduino to draw on in gd.
// This is only called after it has been established that the
// game object is visible.
- virtual void Draw( void );
+ virtual void Draw( Gameduino *gd );
/*********************************/
/* KILL A SINGLE PLAYER'S BULLET */
/*********************************/
+ // Pass pointer to Gameduino to draw on in gd.
// Pass index of bullet in b.
- void KillBullet( UInt8 b ) {
- playerBullets.KillBullet( b );
+ void KillBullet( Gameduino *gd, UInt8 b ) {
+ playerBullets.KillBullet( gd, b );
}
/*****************************/
/* KILL ALL PLAYER'S BULLETS */
/*****************************/
- void KillAllBullets( void ) {
- playerBullets.KillAllBullets();
+ // Pass pointer to Gameduino to draw on in gd.
+ void KillAllBullets( Gameduino *gd ) {
+ playerBullets.KillAllBullets( gd );
}
/*********************************************************/