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-04-15
Revision:
8:27e7d776ac0b
Parent:
7:e567cd172d2a
Child:
9:252abbc93565

File content as of revision 8:27e7d776ac0b:

#ifndef OBJECTS_H
#define OBJECTS_H

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

class Objects
{
    public:
    
    Objects();
    ~Objects();
    void init(float speed);
    void draw(N5110 &lcd);
    void undraw(N5110 &lcd);
    void move(Gamepad &pad);
    void bullet_time();
    int get_score_var();
    int get_undraw_var();
    int get_x();
    int get_y();
    
    private:
    
    Fruit fruit;
    
    int score_var;
    int undraw_var;
    int objects_size;
    int x_ref;
    int y_ref;
    int objects_ep;
    float objects_speed;
    int objects_shape;
    float pot_val;
    
};
#endif