Ok, so for my game, I need to check collisions, and I thought the best way would be to create bounding boxes ( aka Rectangles ) around all my objects. I know that there is a Rectangle class somewhere in the Java API. but I need one with a little more precision. I cannot use any external libraries in my project, so I can't use any of lwjgl features or of libgdx features.
I have created a class, I have tried testing it, but I'm not too sure if I'm testing it wrong, or if there is a problem in my class.
Can someone please read over it and tell me if its wrong, or where i should improve something?
The code will be in the pastebin : http://pastebin.java-gaming.org/d409e4c4246