X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fapp%2FApplication.h;h=fa1d92f82887d7a280431b2715758d6c8abe3e8c;hb=b25efd5fb3e3e97728fc6b78b5bf7524ae0350c1;hp=61c3f45a5ab7e8ebe3ed740643e7097e17ee1246;hpb=3f4f8a92f64df08119a40da4d196b3e92ecdc637;p=space.git diff --git a/src/app/Application.h b/src/app/Application.h index 61c3f45..fa1d92f 100644 --- a/src/app/Application.h +++ b/src/app/Application.h @@ -1,23 +1,25 @@ #ifndef SPACE_APPLICATION_H_ #define SPACE_APPLICATION_H_ +#include "../ai/Autopilot.h" #include "../graphics/Camera.h" #include "../graphics/Moveable.h" -#include "../math/Vector.h" +#include "../graphics/Vector.h" +#include "../ui/DualGauge.h" #include "../world/Universe.h" -#include +#include namespace space { -class InitScreen; -class Entity; +class Canvas; +class Ship; class Application { public: - explicit Application(InitScreen &); + explicit Application(Canvas &); public: void Run(); @@ -32,20 +34,31 @@ private: void Update(int delta_ms); void Render(); + void RenderBackground(); + void RenderGrid(); + void RenderShips(); + void RenderUI(); private: - InitScreen &screen; + Canvas &canvas; Universe univ; Moveable focus; Camera cam; - Entity *controlled; + Ship *controlled; Vector control; + DualGauge linGauge; + DualGauge rotGauge; + + Autopilot autopilot; + bool apEnabled;; + Uint32 last; bool running; + bool paused; };