[Pogamut-list] Own A* (originally posted by jakub.gemrot)

jakub.gemrot pogamut-forum at diana.ms.mff.cuni.cz
Thu Jun 17 08:14:13 CEST 2010


Re: Re: Own A* (originally posted by jakub.gemrot)

Author: jakub.gemrot

Hi!

If you're using MultipleUT2004BotRunner than the correct place is just before the Multple... is used.

UT2004ServerFactory lies in the package cz.cuni.amis.pogamut.ut2004.factory.direct.remoteagent, thus import it
and instantiate using 

factory = new UT2004ServerFactory();

UT2004Server server = factory.newAgent(new AgentId("MyServer"), new SocketConnectionAddress("localhost", 3001)); // or whatever port the control connection is running at

Than use your Multiple... to start the agents, after they finish, use the 'server' instance to iterate through its players kicking them out.

Hope it helps :-)

Cheers!
Jakub

P.S.: the main idea is to instantiate and use the UT2004Server in the very place where your bots are being executed.

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=248&post_reply=1#form>





More information about the Pogamut-list mailing list