X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FApplication.h;h=fa1d92f82887d7a280431b2715758d6c8abe3e8c;hb=b25efd5fb3e3e97728fc6b78b5bf7524ae0350c1;hp=a85269612257269349b6955fb4c85f2968cc4224;hpb=96ab5904b059e00e78b26a6527790c8dc951e324;p=space.git diff --git a/src/app/Application.h b/src/app/Application.h index a852696..fa1d92f 100644 --- a/src/app/Application.h +++ b/src/app/Application.h @@ -1,22 +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 Canvas; +class Ship; class Application { public: - explicit Application(InitScreen &); + explicit Application(Canvas &); public: void Run(); @@ -30,20 +33,32 @@ private: void Update(int delta_ms); - Vector FocusVel() const; - void Render(); + void RenderBackground(); + void RenderGrid(); + void RenderShips(); + void RenderUI(); private: - InitScreen &screen; + Canvas &canvas; Universe univ; Moveable focus; Camera cam; + Ship *controlled; + Vector control; + + DualGauge linGauge; + DualGauge rotGauge; + + Autopilot autopilot; + bool apEnabled;; + Uint32 last; bool running; + bool paused; };