ELEC2645 (2018/19) / Mbed 2 deprecated el17aio

Dependencies:   mbed

RosenEngine/RosenEngine.h

Committer:
ikenna1
Date:
2019-03-05
Revision:
5:bb6edc5b5be3
Parent:
4:740e14ebbc97
Child:
7:ed5870cfb3e0

File content as of revision 5:bb6edc5b5be3:

#ifndef ROSENENGINE_H
#define ROSENENGINE_H

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


class RosenEngine
{

public:
   RosenEngine();
    ~RosenEngine();
    
    void RosenEngine::init(int ship_width,int ship_speed,int ship_xpos,int ship_ypos);
    void read_input(Gamepad &pad);
    void update(Gamepad &pad);
    void draw(N5110 &lcd);
    
private:
    void check_ship_projectile_collision();
    void check_enemy_ship_collision();
    void check_enemy_projectile_collision();   
    
    // Variables
    int _ship_speed;
    int _ship_width;
    int _ship_xpos;
    int _ship_ypos;
    
    float _xjoystick;
    float _yjoystick;


};

#endif