Richard Ellingworth / Mbed 2 deprecated RobotRic

Dependencies:   25LCxxx_SPI CommonTypes Gameduino mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ExplosionObject.h Source File

ExplosionObject.h

00001 /*
00002  * SOURCE FILE : ExplosionObject.h
00003  *
00004  * Represents an explosion.
00005  *
00006  */
00007 
00008 #ifndef ExplosionObjectIncluded
00009   
00010   #define ExplosionObjectIncluded
00011 
00012   #include "OneShotObject.h"
00013   #include "SpriteImageId.h"
00014   
00015   class ExplosionObject : public OneShotObject {
00016     
00017   public :
00018 
00019     /***************/
00020     /* CONSTRUCTOR */
00021     /***************/
00022     ExplosionObject() {
00023       SetImageRange( Explosion0Image, Explosion9Image, 7 );
00024     }
00025 
00026     /**************/
00027     /* DESTRUCTOR */
00028     /**************/
00029     virtual ~ExplosionObject() {
00030     }
00031     
00032     /************************/
00033     /* GET GAME OBJECT TYPE */
00034     /************************/
00035     // Returns type of game object.
00036     virtual GameObjectTypes GetType( void ) {
00037       return ExplosionObjectType;
00038     }
00039     
00040   };
00041     
00042 #endif
00043 
00044 /* END of ExplosionObject.h */
00045