diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-28 18:18:08 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-28 18:18:08 +0200 |
commit | 1c15f53318d49ccd148ec42b0a4345c4a8cd06bf (patch) | |
tree | 008ffa85e6b118dbe0a16da2f52e72e2e7b41cdf /src/environment.h | |
parent | 7937813c98255736c6847fe2d1302e0c6b309b04 (diff) | |
download | minetest-1c15f53318d49ccd148ec42b0a4345c4a8cd06bf.tar.gz minetest-1c15f53318d49ccd148ec42b0a4345c4a8cd06bf.tar.bz2 minetest-1c15f53318d49ccd148ec42b0a4345c4a8cd06bf.zip |
Add EnvRef:get_objects_inside_radius(pos, radius)
Diffstat (limited to 'src/environment.h')
-rw-r--r-- | src/environment.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/environment.h b/src/environment.h index e14a9c485..3ebbee910 100644 --- a/src/environment.h +++ b/src/environment.h @@ -261,18 +261,24 @@ public: void activateBlock(MapBlock *block, u32 additional_dtime=0); /* - ActiveBlockModifiers (TODO) + ActiveBlockModifiers ------------------------------------------- - NOTE: Not used currently (TODO: Use or remove) */ void addActiveBlockModifier(ActiveBlockModifier *abm); - /* Other stuff */ + /* + Other stuff + ------------------------------------------- + */ + + // Find all active objects inside a radius around a point + std::set<u16> getObjectsInsideRadius(v3f pos, float radius); // Clear all objects, loading and going through every MapBlock void clearAllObjects(); + // This makes stuff happen void step(f32 dtime); private: |