for my purposes in small 2d-games i have an imageloader class which loads imagestrips and creates animation-objects by cutting them down into frame-pieces.
then they are stored in an array. up to now, this array is declared static (images are needed only once and for the whole program time), so i have the advantage that thousands of equal objects reference to the same animation within the imageloader.
but how should a gameobject know which one to choose ?
should a game-object have the image-name hardcoded in its class for sending a single request to the imageloader (load x.jpg and return the reference) ?