Prints objects on to a Nokia N5110 LCD display and makes them 'fall' down the display.

Dependents:   Game_Controller_Project

Objects.h

Committer:
Nathanj94
Date:
2017-03-23
Revision:
3:0c79211fdfe0
Parent:
2:3f42da6a4c89
Child:
4:56ca80919a98

File content as of revision 3:0c79211fdfe0:

#ifndef OBJECTS_H
#define OBJECTS_H

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

class Objects
{
    public:
    
    Objects();
    ~Objects();
    void init(int speed);
    void draw(N5110 &lcd);
    void undraw(N5110 &lcd);
    void move();
    int get_x();
    int get_y();
    
    private:
    
    int objects_size;
    int x_ref;
    int y_ref;
    int objects_ep;
    int objects_speed;
};
#endif