Cuberite Forum
Remove cCuboid class? - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Remove cCuboid class? (/thread-814.html)

Pages: 1 2


RE: Remove cCuboid class? - xoft - 02-25-2013

Well, what an uproar. I think it's clear people want it kept in, so I won't touch its existence. However, having a class for just two functions feels weird, so I'm gonna think about other usage as well and might add that.

What comes to mind is that we can use cCuboid to give dimensions to cBlockArea reads. That way you can have a per-player cCuboid class that they manage through regular means - rclking with a stick or wooden axe or whatever - and then read a cBlockArea based on that cuboid. No need to keep two sets of coords for each player.


RE: Remove cCuboid class? - FakeTruth - 02-25-2013

IMO cCuboid is just as basic as a Vector2/3/f/d/i it specifies a cube like area in 3D. It's like a box, or rect in other libraries.