]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/environment.h
Joystick: Remap joystick-specific KeyTypes to generic ones
[dragonfireclient.git] / src / environment.h
index 932a643a0d675a37de3719537808664abf54e09a..b4884fdb3849ae38f3ab4a9f97ef7ae06383688d 100644 (file)
@@ -76,6 +76,16 @@ class Environment
 
        u32 getDayCount();
 
+       /*!
+        * Returns false if the given line intersects with a
+        * non-air node, true otherwise.
+        * \param pos1 start of the line
+        * \param pos2 end of the line
+        * \param p output, position of the first non-air node
+        * the line intersects
+        */
+       bool line_of_sight(v3f pos1, v3f pos2, v3s16 *p = nullptr);
+
        /*!
         * Gets the objects pointed by the shootline as
         * pointed things.
@@ -136,8 +146,8 @@ class Environment
        bool m_cache_enable_shaders;
        float m_cache_active_block_mgmt_interval;
        float m_cache_abm_interval;
-       float m_cache_ao_interval;
        float m_cache_nodetimer_interval;
+       float m_cache_abm_time_budget;
 
        IGameDef *m_gamedef;