[Home]History of PluggableRobot/ListenerDelegate

Robo Home | Changes | Preferences | AllPages


Revision 4 . . (edit) November 3, 2007 0:51 EST by RobertWalker [Loosened the license]
Revision 3 . . October 18, 2007 18:34 EST by RobertWalker [Moved ListenerInvoker inside ListenerDelegate, since the latter class is the only one that uses the former]
Revision 2 . . (edit) September 22, 2007 5:57 EST by RobertWalker
  

Difference (from prior major revision) (minor diff)

Changed: 5,6c5,6
* This software is made available under the RoboWiki Public Code License (RWPCL). The full text of
* the license may be found at http://robowiki.net/cgi-bin/robowiki?RWPCL.
* This software is made available under the RoboWiki Limited Public Code License (RWLPCL). The full
* text of the license may be found at http://robowiki.net/cgi-bin/robowiki?RWLPCL.

Added: 150a151,168


/**
* An object that knows about a Robocode Event class and how to invoke its corresponding
* EventListener?.
* @author Robert J. Walker
*/
private static abstract class ListenerInvoker?<K extends EventListener?, V extends Event> {
/**
* Returns the Robocode Event class handled by this ListenerInvoker?.
*/
protected abstract Class<V> eventClass();

/**
* Invokes the given EventListener?, passing in a Robocode Event object.
*/
protected abstract void invokeListener(K listener, V event);
}

Changed: 152c170
</nowiki></pre>
</nowiki></pre>

Robo Home | Changes | Preferences | AllPages
Search: