Simple fish eat program

Dependencies:   mbed mbed-rtos N5110 ShiftReg Tone

classes/Graphics.h

Committer:
el18a2k
Date:
2021-04-20
Revision:
10:e221bd1ce3ec
Parent:
3:8c9c9794bcf2
Child:
12:20ac766b3175

File content as of revision 10:e221bd1ce3ec:

#ifndef GRAPHICS_H
#define GRAPHICS_H

#include "N5110.h"

class Graphics {

public:
    void titleScreen(N5110 &lcd); //creates the game title screen
    void confirmationScreen(N5110 &lcd); //waits for player to press A
    
    /*  If the ScreenFlash function doesnt operate as intended check that the LCD
    *   screen its self is seated correctly as this seems to be an issue*/
    void screenFlash(N5110 &lcd); //flashes LCD screen
    
    //player fish
    void Fish_1(N5110 &lcd, int _x, int _y); //draws fish 1 (smallest fish)
    void Fish_2(N5110 &lcd, int _x, int _y); //draws fish 2
    void Fish_3(N5110 &lcd, int _x, int _y); //draws fish 3
    void Fish_4(N5110 &lcd, int _x, int _y); //draws fish 4 (largest fish)
    
    void upArrow(N5110 &lcd); // draws menu arrow
    void downArrow(N5110 &lcd); // draws menu arrow
    void leftArrow(N5110 &lcd); // draws menu arrow
    void rightArrow(N5110 &lcd); // draws menu arrow
    
    //enemy fish
    void E_Fish_1(N5110 &lcd, int _x, int _y); //draws fish 1 (smallest fish
    void E_Fish_2(N5110 &lcd, int _x, int _y); //draws fish 2
    void E_Fish_3(N5110 &lcd, int _x, int _y); //draws fish 3
    void E_Fish_4(N5110 &lcd, int _x, int _y); //draws fish 4 (largest fish)
};

#endif