There are two ways how to register listeners. Either you may annotate any method with one of the annotation
EventListener
, ObjectEventListener
, ObjectClassEventListener
,
ObjectClassEventListener
or ObjectListener
, or you may manually
register a listener via IWorldView
interface using one of the getWorldView().addEventListener()
or
getWorldView().addObjectListener()
methods.
To see how the listeners are registered on bot's world view, find
prepareBot()
method. In the body of this
method there is an example of manual listener registration.