[Pogamut-list] senses.seeIncomingProjectile()
jakub.gemrot
pogamut-forum at diana.ms.mff.cuni.cz
Fri Jun 15 08:31:54 CEST 2012
Re: senses.seeIncomingProjectile()
Author: jakub.gemrot
Hi!
I'm so sorry to say that "senses" is a terrible module! Do not use that! We're going to refactor that...
Instead, check this tutorial: http://pogamut.cuni.cz/pogamut_files/latest/doc/tutorials/01-ResponsiveBot.html
And write your own event listener for "IncomingProjectile.class" object event
Something like (into your bot class):
@ObjectEventListener(objectClass=IncomingProjectile.class, eventClass=WorldObjectUpdatedEvent.class)
public function incomingProjectileEvent(WorldObjectUpdatedEvent<IncomingProjectile> event) {
...
}
Cheers!
Jakub
--
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=964&post_reply=1#form>
More information about the Pogamut-list
mailing list