| 07-03-2006, 11:35 AM | #1 |
Hmm... On the one hand, there are Rects, which are, imo circles with a center location within a map. Now how are Regions defined? Is it possible to make Regions that have more than 3 Corners? Like, I would want to create a region in a forest, but that forest is neither round or whatever, but rather has 100 Million borders and corners... What to do? |
| 07-03-2006, 11:52 AM | #2 |
Regions are probably garbage. If you want to define complex shapes it is almost certainly better to do it yourself. If you explain what sort of operations you need we can design something. Try telling a story of a typical situation. BTW, the internal representation of rects is position of lower left and upper right corners. |
| 07-03-2006, 05:52 PM | #3 |
What GUI does on when you use for example unit enters region is it creates a region and adds the rect to it. GUI would just create a new region for each rect, where in JASS, you can add several rects to the same region Or, if you wish, just add each cell :) JASS:native Rect takes real minx, real miny, real maxx, real maxy returns rect native MoveRectTo takes rect whichRect, real newCenterX, real newCenterY returns nothing native RegionAddRect takes region whichRegion, rect r returns nothing native RemoveRect takes rect whichRect returns nothing // native RegionAddCell takes region whichRegion, real x, real y returns nothing |
| 07-04-2006, 01:29 AM | #4 |
Rects are rectangles not circles. Regions are a set of points, and you can add rects or the points you want. |
