I have a class, Player, which inherits from AnimatedSprite. AnimatedSprite has a protected abstract loadAnimations method that Player must override to load the actual animations (since the animation will depend on the sprite image, it must be implemented by a class derived from AnimatedSprite).
However, although I force the class user to implement this method, is there a way to get the user to actually call this method, preferably inside the Player constructor, to ensure that the animation always loads? I'm sure C # does not have any language features for this (although I may be wrong), maybe there is a better class design sample that I can implement that I am observing?
As always, thanks in advance!
Neeko source share