a work-in-progress map modified callback interface (committing because i want to...
authorPerttu Ahola <celeron55@gmail.com>
Tue, 24 May 2011 17:05:30 +0000 (20:05 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 24 May 2011 17:05:30 +0000 (20:05 +0300)
src/environment.h
src/main.cpp

index 8993b8e87c07ce2bc129206ed9144edb74312ec2..ac290f932cac31be4bbec9ec7be14e57a3ac3298 100644 (file)
@@ -116,13 +116,19 @@ private:
        Active block modifier interface
 */
 
+class ServerEnvironment;
+
 class ActiveBlockModifier
 {
 public:
        ActiveBlockModifier(){};
        virtual ~ActiveBlockModifier(){};
-       //TODO
-       //virtual void 
+       
+       virtual u32 getTriggerContentCount(){ return 1;}
+       virtual u8 getTriggerContent(u32 i) = 0;
+       virtual float getActiveInterval() = 0;
+       virtual u32 getActiveChance() = 0;
+       virtual void triggerEvent(ServerEnvironment *env, v3s16 p) = 0;
 };
 
 /*
index 06deb9310d7e651df1931cc044f55f9814cef4ad..f67d53475ad234fbc5105dc07a7bca343c471849 100644 (file)
@@ -310,6 +310,8 @@ Stuff to do before release:
   ActiveBlockModifier stuff)\r
 - Protocol version field\r
 - Consider getting some textures from cisoun's texture pack\r
+- Add a long step function to objects that is called with the time\r
+  difference when block activates\r
 \r
 ======================================================================\r
 \r