[sdljava-users] Brand New! SDLRect and SDLPoint Patch
Status: Beta
Brought to you by:
ivan_ganza
From: Chris D. <Des...@nt...> - 2005-03-05 17:02:56
|
I've created a new patch file that has improvements to SDLRect, and introduces SDLPoint. SDLRect no longer extends SDLPoint, nor does it use it for any fields, but this may be implemented in the future. If you want me to edit anything if you can't commit it for some reason, just tell me, or do it yourself if the changes are minor, but I think everything is in order. These changes only took me around an hour to implement using the existing modified source which could not be checked in. Changelog: * SDLRect * Allows you to create a new SDLRect with the x and y in SDLPoint as the topleft point, and with integer height and width. * Now has getLocation(), getCenter(), getTopRight(), getBottomLeft(), getBottomRight(), setLocation(SDLPoint), setCenter(SDLPoint), setCenter(int, int). * Can now be cloned using clone() method, implemented using standard coding practice. * More intuitive JavaDoc comments. * SDLPoint * Brand new class, allows you to reference a 2D point that has an X and Y coordinate. The patch file for these changes is attached. By the way, I see that the other SDLJava files have an odd @version JavaDoc string -- how did you implement this? Is it automatic? p.s. Mozilla Thunderbird is doing my head in with its whacky indentation ;) Regards, Chris -- |>>> Dessimat0r /`\ | "We cannot turn back time, but we can _ _|_ _ move it forwards with our own hands." |;|_|;|_|;| \\. . / [www: http://codeknight.net ] \\: . / [e-mail: des...@nt... ] ||: U | /`\ [icq: 21477909 ] ||:. | [msn: des...@nt... ] \,/ ||: U.| ||: | \,/ ||: , | ____--`~--- '--~~__ __ ----~ - ~`---, -~--~ ~---__ ,--~' ~~----___ |