Hello! I was wondering if there were any parent class for a class that will only do one specific job and then relay the results to another class. I’ve found alot of cool and usable parent classes and was thinking there might be one for this as well.
I’m currently having an actor class act as this kind of thing, I have a MovementCalculator-actor that I put in the game world, then classes who will use this MovementCalculator-actor have a pointer to it, during their BeginPlay() it will find the actor in the game world and start pointing to it.
Then to use it, for example I have units, who, when clicked, asks the calculator to calculate their movement, and then I have a Gameboard that reads all the movements calculated and activates the respective squares.
Now I was wondering if there were any other way in Unreal Engine to accomplish this without using actors, also preferably without making the entire class static, also no singletons.
Sorry if the English used is not perfect, I’ve been coding for a while and I’m a bit tired.