]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/Interface.hpp
check for entities under crosshair
[blank.git] / src / ui / Interface.hpp
index 0cffd762cc29ea79af24b2204a94f0d4299c9e29..907f9c234a320e5434c0da1f21bd2244c397c958 100644 (file)
@@ -19,6 +19,7 @@
 namespace blank {
 
 class Chunk;
+class Entity;
 class Environment;
 class Viewport;
 class World;
@@ -70,6 +71,8 @@ public:
        void ToggleDebug();
        void UpdateCounter();
        void UpdatePosition();
+       void UpdateOrientation();
+       void UpdateBlockInfo();
 
        void PostMessage(const char *);
        void PostMessage(const std::string &msg) {
@@ -82,6 +85,7 @@ public:
 
 private:
        void CheckAim();
+       void UpdateOutline();
 
 private:
        Environment &env;
@@ -91,6 +95,7 @@ private:
 
        Ray aim;
        Chunk *aim_chunk;
+       Entity *aim_entity;
        int aim_block;
        glm::vec3 aim_normal;
 
@@ -99,6 +104,9 @@ private:
 
        FixedText counter_text;
        FixedText position_text;
+       FixedText orientation_text;
+       FixedText block_text;
+       Block last_displayed;
        MessageBox messages;
        IntervalTimer msg_timer;
 
@@ -115,6 +123,8 @@ private:
 
        glm::ivec3 fwd, rev;
 
+       bool debug;
+
 };
 
 }