User talk:BenHorner
Another Event related question... While I was just making a class to capture all the events, I noticed that there are several interfaces that appear to do this already; IBasicEvents, IBasicEvents2, IInteractiveEvents, IPaintEvents which are implemented by Robot, and IAdvancedEvents, which is implemented by AdvancedRobot. I guess I will just implement these instead of making a completely separate class.
When I saw those, I looked through the API a bit more, and noticed these interfaces: IBasicRobot and IAdvancedRobot, each of which define a method, getXXXEventListener(). These interfaces are also implemented by Robot and AdvancedRobot respectively. My question is this: Is the result of the getXXXEventListener() methods always used to call the onXXX() methods? I'd like to be able only to override the getXXXEventListener() and provide a listener, rather than having to override every single onXXX() method in my robot class. --BenHorner 01:58, 11 May 2009 (UTC)
I see that in the robocode javadocs for the MouseEvent http://robocode.sourceforge.net/docs/robocode/; the MouseEvent class has only one method, getSourceEvent() which returns a java.awt.event.MouseEvent, which in turn contains the interesting info about the MouseEvent, but the javadocs say "Do not call this method!"... Is that really a dangerous thing to do? I think it might be useful for testing and stuff... --BenHorner 00:42, 11 May 2009 (UTC)
- Looks like I might have been a little confused, all of the onMouseXXX() methods are taking java.awt.event.MouseEvent, is robocode.MouseEvent used anywhere? Maybe just vestigial...? --BenHorner 00:54, 11 May 2009 (UTC)
- Glad to hear that, I think I'm on the right track then, thanks Nat. --BenHorner 01:58, 11 May 2009 (UTC)
The old wiki content is still available, but not so easy to access. Voidious posted a note somewhere about how to access it -- I can copy it over if you like. Talk pages are for comments, yes. You should also sign your posts, on this wiki you just need to put in four tildes (~~~~) and it'll add your name + timestamp. The rumble is definitely running but on a new server. See RoboRumble and Darkcanuck/RRServer for details. I also put a copy of most older bots on my webserver since the repository wasn't behaving: http://darkcanuck.net/rumble/robots --Darkcanuck 04:03, 8 May 2009 (UTC)
- If you want to know basic of this new wiki, look at {{Welcome}}. It contain basic information about using this wiki. » Nat | Talk » 10:38, 8 May 2009 (UTC)
- Thanks for the info and the link(s). --BenHorner 21:52, 8 May 2009 (UTC)
- I wouldn't mind having that link to the old wiki, or to the page that describes how to get there. I'm sure I put some stuff on there that I'd like to reread now. --BenHorner 00:42, 11 May 2009 (UTC)
- [View source↑]
- [History↑]
You cannot post new threads to this discussion page because it has been protected from new threads, or you do not currently have permission to edit.