Re: RobotDeath Event Only Seems to Fire When visible = false
"flemmingnlarsen" <[email protected]>
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
Regarding the onRobotDeath(). It could be a bug in Robocode. I will need to check the code in detail and fix it if it is a bug. I am curious. Why are you using an InteractiveRobot for sending events to the external application. Any other robot type like the AdvancedRobot might be a better option as it does not depend on getting mouse and key event from the user interface (battle view). The problem with the onRobotDeath() might be related to the engine.setVisible(false), but I am not sure (yet). Regards, - Flemming --- In [email protected], "mbesney" <mbesney@...> wrote: > > I am running Robocode from Eclipse. The external application communicates with an interactive robot through the clipboard. The robot send events (e.g. onScannedRobot) and the external app sends advanced robot commands (e.g. setFire). The onRobotDeath doesn't seem to get through unless engine.setVisible (false). I need the event with a visible battlefield, any ideas out there? > > As usual, thanks in advance. > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Robocode/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/Robocode/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/