Difference between revisions of "Thread:Talk:Main Page/Modifying the Robocode Game./reply (5)"
Jump to navigation
Jump to search
(Reply to Modifying the Robocode Game.) |
(No difference)
|
Latest revision as of 04:00, 29 August 2012
Sorry - I meant where ever you're debugging and seeing an AdvancedRobot when you want to see a FreezeRobot, try instanceof on that variable. It's probably true for "instanceof FreezeRobot", which is one way you could test the type of a robot - though probably not the fastest way, so you might want to figure something else in final implementation.