]> git.lizzy.rs Git - minetest.git/blobdiff - src/environment.h
changed water color in farmesh
[minetest.git] / src / environment.h
index bb9fb0136017a42bdb3f475b73418aa65cd7bfd3..ce6b5ae1e76bb1c6912f99198b259ea2c8746789 100644 (file)
@@ -36,6 +36,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "map.h"
 #include <ostream>
 #include "utility.h"
+#include "activeobject.h"
+
+class Server;
+class ActiveBlockModifier;
+class ServerActiveObject;
 
 class Environment
 {
@@ -118,11 +123,6 @@ class ActiveBlockList
        This is not thread-safe. Server uses an environment mutex.
 */
 
-#include "serverobject.h"
-
-class Server;
-class ActiveBlockModifier;
-
 class ServerEnvironment : public Environment
 {
 public:
@@ -197,6 +197,12 @@ class ServerEnvironment : public Environment
        */
        ActiveObjectMessage getActiveObjectMessage();
 
+       /*
+               Activate objects and dynamically modify for the dtime determined
+               from timestamp and additional_dtime
+       */
+       void activateBlock(MapBlock *block, u32 additional_dtime=0);
+
        /*
                ActiveBlockModifiers (TODO)
                -------------------------------------------
@@ -406,6 +412,7 @@ class ClientEnvironment : public Environment
        scene::ISceneManager *m_smgr;
        core::map<u16, ClientActiveObject*> m_active_objects;
        Queue<ClientEnvEvent> m_client_event_queue;
+       IntervalLimiter m_active_object_light_update_interval;
 };
 
 #endif