Adds a structure, for spawning game tasks at specific spawn points.
Enables tasks to define own spawn point types to store custom positions and additional spawn point data. This can be achieved by extending from the TaskSpawnPoint class.
I changed the GameTaskFactory class to be generic, so that the inherited classes can adjust the spawn point type.
The final result is presented in the SpawnpointTestScene.
Take a look at the structure and tell me, what you think about it.
Adds a structure, for spawning game tasks at specific spawn points. Enables tasks to define own spawn point types to store custom positions and additional spawn point data. This can be achieved by extending from the
TaskSpawnPoint
class. I changed theGameTaskFactory
class to be generic, so that the inherited classes can adjust the spawn point type. The final result is presented in theSpawnpointTestScene
. Take a look at the structure and tell me, what you think about it.