ELEC2645 (2018/19) / Mbed 2 deprecated el17aio

Dependencies:   mbed

RosenEngine/RosenEngine.h

Committer:
ikenna1
Date:
2019-03-12
Revision:
8:87a845b8575e
Parent:
7:ed5870cfb3e0
Child:
9:241a1a7d8527

File content as of revision 8:87a845b8575e:

#ifndef ROSENENGINE_H
#define ROSENENGINE_H

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


class RosenEngine
{

public:
   RosenEngine();
    ~RosenEngine();
    
    void init(int ship_width,int ship_height,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
    Ship _ship;
    float _xjoystick;
    float _yjoystick;


};

#endif