]> git.localhorst.tv Git - space.git/blobdiff - src/app/Application.h
split render function
[space.git] / src / app / Application.h
index b5f0a6b607ff362b052be126771705cd1b53996a..fa1d92f82887d7a280431b2715758d6c8abe3e8c 100644 (file)
@@ -1,9 +1,11 @@
 #ifndef SPACE_APPLICATION_H_
 #define SPACE_APPLICATION_H_
 
+#include "../ai/Autopilot.h"
 #include "../graphics/Camera.h"
 #include "../graphics/Moveable.h"
 #include "../graphics/Vector.h"
+#include "../ui/DualGauge.h"
 #include "../world/Universe.h"
 
 #include <SDL.h>
@@ -12,7 +14,7 @@
 namespace space {
 
 class Canvas;
-class Entity;
+class Ship;
 
 class Application {
 
@@ -32,6 +34,10 @@ private:
        void Update(int delta_ms);
 
        void Render();
+       void RenderBackground();
+       void RenderGrid();
+       void RenderShips();
+       void RenderUI();
 
 private:
        Canvas &canvas;
@@ -41,11 +47,18 @@ private:
        Moveable<float> focus;
        Camera cam;
 
-       Entity *controlled;
+       Ship *controlled;
        Vector<int> control;
 
+       DualGauge linGauge;
+       DualGauge rotGauge;
+
+       Autopilot autopilot;
+       bool apEnabled;;
+
        Uint32 last;
        bool running;
+       bool paused;
 
 };