So I got a entity base class and then a projectile class that inherits the entity class. Now I got this problem that the entity class has a OnLoad function that loads a image for the entity.
This is all well and good if you got a object to load the image for. But with the projectiles i need to just load an image at the start of the program and then use the same image for all projectiles that I load during run time. I tried making the OnLoad function inside of projectile a static method but it complains that the OnLoad function in the entity class cant be overwritten.
Then i tried to rename it and see if that worked, but the OnLoad function inside of projectile needs to call Entitys OnLoad function and now it complains that it needs an object and cant use Entity::OnLoad.
It´s already a Virtual, but I cant make it static inside of projectile. Since I only want to load the projectile picture at the start of the program and not every time i create a new projectile during run time.