Background: I'm using Universal Tween Engine, which allows generic accessors to be implemented to permit tweening of arbitrary atttributes.
I have a hierarchy of game entity classes that share a common base class (say, Entity). I've implemented a TweenAccessor on Entity for basic attribute tweening (position, color, rotation, etc). I'd also like subclasses of Entity to be able to implement their own, more specialized tweens, in addition to having access to Entity's base set of tweens. However, it seems that when I register a class and a subclass accessor, the base class' accessor is never called during tweening.
For example, assume base class Entity and subclass Bullet:
Tween.registerAccessor(Entity.class, new EntityAccessor()); Tween.registerAccessor(Bullet.class, new BulletAccessor());
Attempting to do any of the tweens defined in EntityAccessor will not be called -- BulletAccessor will always be used instead. Is there any way to configure Universal Tween Engine to work in such a hierarchical fashion?