Display driver for the Vives city game

Dependencies:   TextLCD

Revision:
4:f056a09af806
Parent:
1:2196e0eba43a
Child:
5:06eccc902247
--- a/Display.h	Wed Apr 26 09:35:15 2017 +0000
+++ b/Display.h	Mon May 08 20:01:50 2017 +0000
@@ -1,17 +1,21 @@
 #pragma once
 #include "TextLCD.h"
 #include "CostumCharacters.h"
-#include "Mission.h"
+#include "DisplayX.h"
 #include <string>
 
-namespace VivesCityGame
-{
-
-class Display
+class Display : public DisplayX
 {
 
 private:
     
+    bool topBarEnable;
+    
+    int hours;
+    int minutes;
+    int seconds;
+    
+    PwmOut* backlight;
     std::string emptyRow;
     TextLCD * lcd;
     CostumCharacters * costumCharacters;
@@ -19,13 +23,16 @@
 
 public:
     Display();
+    void setBacklight( float lvl );
     void setTime( int houres, int minutes, int seconds );
     void setStatusBattery( float batteryLvl );
     void setStatusGps( bool gpsFix );
     void setStatusLora( bool lora, int loraStatus );
     
-    void setWelcomeScreen( void );
-    void setMissionScreen( Mission * currentMission );
-    void setEndScreen( void );
+    virtual void setStartScreen( void );
+    virtual void setMissionScreen( std::string description, int distance, int radius );
+    virtual void setMessageScreen( std::string description );
+    virtual void setEndScreen( void );
+    void topBar(bool topBar);
 };
-};
+