Nemesis game, rocket

Rocket.h

Committer:
musallambseiso
Date:
2017-05-02
Revision:
10:71e2de3ae034
Child:
11:7734b721ed43

File content as of revision 10:71e2de3ae034:

#ifndef ROCKET_H
#define ROCKET_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Friendly.h"

class Rocket
{

public:

    /// Constructors and destructors:
    Rocket();
    ~Rocket();
    
    
    ////////////////////////////////
    //////// PUBLIC VARIABLES 
    ////////////////////////////////
    
    
    /** Initialize Rocket
    *   
    *   Initializes rocket x & y positions.
    */
    void init(int x, int y);
    
    
    /** Draw Rocket
    *   
    *   Draws the rocket onto the LCD, in accordance with the parameters initialized in the "init" method.
    */
    void draw(N5110 &lcd);
    
    
private:


    ////////////////////////////////
    //////// PRIVATE VARIABLES
    ////////////////////////////////
    
    
    /// Integer variables to store the x and y coordinates of the friendly ship:
    int _x;
    int _y;
    
};

#endif