ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_PROJECT_EL18KK

Dependencies:   mbed

SplashScreen/Splash.h

Committer:
KaifK
Date:
2020-05-24
Revision:
20:c697902b844f
Parent:
9:e6566d09f087
Child:
25:467d8fd0fec4

File content as of revision 20:c697902b844f:

#ifndef SPLASH_H
#define SPLASH_H

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


class Splash {
    private:
    //objects
    N5110 *_lcd;
    Ball *_ball;
    
    public:
        /** Constructor */
        Splash(N5110 &lcd, Ball &ball);
        
        /** Destructor */
        ~Splash();
        
        void displayInfo();
        
        void playIntro();
        
        void drawLogo(int x, int y);
        
        
    private:
        void draw_name();
        
        void player_enter_animation();
        
        void kick_animation();
        
        void shot_animation();
        
        void contrast_slide();
    
    };
    


#endif