![]() |
DebugDraw class in JBox2D - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: Off Topic (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=5) +--- Forum: Programming (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=30) +--- Thread: DebugDraw class in JBox2D (/showthread.php?tid=9644) Pages:
1
2
|
RE: DebugDraw class in JBox2D - Dignity - 07-14-2012 Code: public interface Draw { (07-14-2012, 01:32 AM)Qwertygiy Wrote: Random idea, try swapping these two lines: I tried that, same problem. *sees the DebugDraw running st00f is in the game loop* *feels stupid* RE: DebugDraw class in JBox2D - Qwertygiy - 07-14-2012 No no, the interface would be DebugDraw if that line of what I'm thinking is correct, which again I'm not sure of at all. So it would be more like Code: public class Draw implements DebugDraw And then include all the methods of DebugDraw. RE: DebugDraw class in JBox2D - Dignity - 07-14-2012 (07-14-2012, 01:36 AM)Qwertygiy Wrote: No no, the interface would be DebugDraw if that line of what I'm thinking is correct, which again I'm not sure of at all. So it would be more like "interface expected here" The Java language is terrible with this stuff. RE: DebugDraw class in JBox2D - Qwertygiy - 07-14-2012 Probably means you can only implement interfaces and DebugDraw is not an interface and so as I suspected that line of thinking wouldn't work. RE: DebugDraw class in JBox2D - Dignity - 07-14-2012 I changed it to extends and now it works. Now I have a bunch of methods that throw UnsupportedOperationExceptions. Yay! Random idea: Get the source code version and use it instead. Didn't work. |