Nemesis game, rocket

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Rocket.h Source File

Rocket.h

00001 #ifndef ROCKET_H
00002 #define ROCKET_H
00003 
00004 #include "mbed.h"
00005 #include "N5110.h"
00006 #include "Gamepad.h"
00007 #include "Friendly.h"
00008 
00009 /** Rocket Class
00010 @brief Used for generating the rocket (first weapon type) in the Nemesis game. Includes drawing functions. 
00011 @brief Incorporates N5110.h file by Craig A. Evans.
00012 
00013 @brief Revision 1.0
00014 
00015 @author Musallam M. M. Bseiso
00016 @date   3rd May 2017
00017 */
00018 
00019 
00020 class Rocket
00021 {
00022 
00023 public:
00024 
00025     /// Constructors and destructors:
00026     Rocket();
00027     ~Rocket();
00028     
00029     
00030     ////////////////////////////////
00031     //////// PUBLIC VARIABLES 
00032     ////////////////////////////////
00033     
00034     
00035     /** Initialize Rocket
00036     *   
00037     *   Initializes rocket x & y positions.
00038     */
00039     void init(int x, int y);
00040     
00041     
00042     /** Draw Rocket
00043     *   
00044     *   Draws the rocket onto the LCD, in accordance with the parameters initialized in the "init" method.
00045     *   @param N5110 - nokia LCD library
00046     *   @param lcd - pointer to nokia LCD library
00047     */
00048     void draw(N5110 &lcd);
00049     
00050     
00051 private:
00052 
00053 
00054     ////////////////////////////////
00055     //////// PRIVATE VARIABLES
00056     ////////////////////////////////
00057     
00058     
00059     /// Integer variables to store the x and y coordinates of the friendly ship:
00060     int _x;
00061     int _y;
00062     
00063 };
00064 
00065 #endif