Accompanying library for Objects. Library contains five shapes that are selected at random by the Objects library and drawn on to the objects on a Nokia N5110 LCD display.

Dependents:   Game_Controller_Project

Fruit.h

Committer:
Nathanj94
Date:
2017-04-22
Revision:
2:15120c2cf507
Parent:
1:d9e03c7482ad
Child:
3:aecb8ec9c91d

File content as of revision 2:15120c2cf507:

#ifndef FRUIT_H
#define FRUIT_H

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

class Fruit
{
    public:
    
    Fruit();
    ~Fruit();
    
    //STRAWBERRY DRAW/UNDRAW//
    void draw_strawberry(int x, int y, N5110 &lcd);
    void undraw_strawberry(int x, int y, N5110 &lcd);
    
    //PINEAPPLE DRAW/UNDRAW//
    void draw_pineapple(int x, int y, N5110 &lcd);
    void undraw_pineapple(int x, int y, N5110 &lcd);
    
    //PEAR DRAW/UNDRAW//
    void draw_pear(int x, int y, N5110 &lcd);
    void undraw_pear(int x, int y, N5110 &lcd);
    
    //MELON DRAW/UNDRAW//
    void draw_melon(int x, int y, N5110 &lcd);
    void undraw_melon(int x, int y, N5110 &lcd);
    
    //ANTIFRUIT DRAW/UNDRAW//
    void draw_antifruit(int x, int y, N5110 &lcd);
    void undraw_antifruit(int x, int y, N5110 &lcd);
    
    private:
    
};
#endif