Server Help

Trash Talk - Mappers/Race fans/onArea()

Smong - Fri Apr 18, 2003 4:32 pm
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.
Mine GO BOOM - Fri Apr 18, 2003 4:56 pm
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.
Dr Brain - Fri Apr 18, 2003 11:33 pm
Post subject:
Make a rectangle class that extends a shape class. This will allow flexability.
Helicon - Sat Apr 19, 2003 11:02 am
Post subject:
what about excel style?
IE

X1= 100-110
Y1=100-110,98
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group