PongUIO/AndroidWars — Issue #5: Convenience functions for setting RuleParameter listeners
Author: Thekian
Created: 2012-02-19 18:17:44+00:00
State: open
Labels: extsim

There should be a set of convenience functions to set the listeners for all variants of a generic parameter.

For example, instead of having to call both IdList\::setListener() and IdList\::setListener(), one may simply call something like template\ ExtS::setIdListListeners(), where L is a template that implements each listener variant.

These convenience functions should be global, in a similar manner to translateNameToId(), which is present in IdList.h.

See: For example extsim/param/IdList.h, but valid for most parameter types in extsim/param/*.