Richard Ellingworth / Mbed 2 deprecated RobotRic

Dependencies:   25LCxxx_SPI CommonTypes Gameduino mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BrainBulletObject.h Source File

BrainBulletObject.h

00001 /*
00002  * SOURCE FILE : BrainBulletObject.h
00003  *
00004  * Definition of class BrainBulletObject.
00005  * This is the enemy object used as a bullet fired by BrainObject enemies.
00006  *
00007  */
00008 
00009 #ifndef BrainBulletObjectDefined
00010 
00011   #define BrainBulletObjectDefined
00012 
00013     #include "EnemyObject.h"
00014     
00015   class BrainBulletObject : public EnemyObject {
00016 
00017   public :
00018 
00019         // Horizontal and vertical velocities at which bullet is moving.
00020         // NOT pixel velocities.
00021         Int16 HVelocity, VVelocity;
00022         
00023     /***************/
00024     /* CONSTRUCTOR */
00025     /***************/
00026     BrainBulletObject();
00027 
00028         /*****************************/
00029         /* GET TYPE OF ENEMY THIS IS */
00030         /*****************************/
00031         // Returns enemy type.
00032         virtual EnemyType GetEnemyType( void ) {
00033             return BrainBullet;
00034         }
00035 
00036     /*******************************************************/
00037     /* GET NUMBER OF POINTS AWARDED FOR KILLING THIS ENEMY */
00038     /*******************************************************/
00039     // Returns number of points (in BCD).
00040     virtual UInt8 GetPoints( void ) {
00041             return 0x10;
00042         }
00043 
00044     /************************/
00045     /* DRAW THE GAME OBJECT */
00046     /************************/
00047     // Note if Visible is false this should not draw anything
00048     // and/or hide the visible object.
00049     virtual void Draw( Gameduino *gd );
00050 
00051   protected :
00052   
00053     /************************/
00054     /* MOVE THE GAME OBJECT */
00055     /************************/
00056     virtual void ProtectedMove( void );
00057         
00058     };
00059 
00060 #endif
00061 
00062 /* END of BrainBulletObject.h */