How would you like to setup a rectangle area on the map? |
Using x and y coordinates for top left and bottom right |
|
50% |
[ 1 ] |
Using x and y coordinates for top left and specifying the width and height |
|
50% |
[ 1 ] |
Other (post on this thread but please vote) |
|
0% |
[ 0 ] |
|
Total Votes : 2 |
|
Author |
Message |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Fri Apr 18, 2003 4:32 pm Post maybe stupid Post subject: Mappers/Race fans/onArea() |
 |
|
|
|
I want to know how you would like to setup areas on your maps, circles will just be x/y and radius. But I want to know how you like your rectangles, 4 coordinates, or 2 coords with a width and height (all units in tiles).
Note: the width and height actually extend to the right and downwards. |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Fri Apr 18, 2003 4:56 pm Post maybe stupid Post subject: |
 |
|
|
|
Why not all of the above? You'll have to have it remember what type it is (circle/rect/etc), so why not support all of the above? Some people may like a rectangle defined as all points, others may like it a starting point and the width/height, some may like it the upper left corner, and the lower right corner defined.
Plus if you support all the types, when you want to handle more complex ones (such as polygons), it will be easier to add new types. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Apr 18, 2003 11:33 pm Post maybe stupid Post subject: |
 |
|
|
|
Make a rectangle class that extends a shape class. This will allow flexability. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Helicon Server Help Squatter
Joined: Dec 03 2002 Posts: 771 Location: GNU Doldrums Offline
|
Posted: Sat Apr 19, 2003 11:02 am Post maybe stupid Post subject: |
 |
|
|
|
what about excel style?
IE
X1= 100-110
Y1=100-110,98 _________________ Signatures just seem so quaint. |
|
Back to top |
|
 |
|