Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
guidelines:adding_gamebots_message_to_pogamut_java [2012/02/07 17:45] martin.cerny |
guidelines:adding_gamebots_message_to_pogamut_java [2012/02/07 17:47] martin.cerny |
||
---|---|---|---|
Line 335: | Line 335: | ||
| | ||
} | } | ||
+ | </ | ||
+ | |||
+ | ===== Running the bot ===== | ||
+ | |||
+ | Now you can run you bot with following code (it is nearly the same as the default startup code, only | ||
+ | the module is replaced with our custom module): | ||
+ | |||
+ | <code java> | ||
+ | UDKBotRunner runner = new UDKBotRunner(new SpyVsSpyBotModule(<< | ||
+ | runner.setMain(true); | ||
+ | runner.startAgent(); | ||
+ | |||
</ | </ | ||