Right now rendering is pretty tightly coupled to the squadron object, which makes testing pretty ugly because we either have to spin up an openGL instance for testing, or somehow bypass anything that uses openGL.
Due to laziness and the desire to get some basics done I went with option 2.
Potential Solutions
Decouple the squadron object from the Squadron GameComponent object. Specifically go from a IS A to a HAS A relationship. A Squadron GameComponent has a squadron object it is rendering. Currently a Squadron GameComponent is a squadron object.
Potential Tasks
What does it take to call this issue complete?
[ ] Can run tests without passing that renderSquadron parameter around in the squadron factory class.
Requirements
Right now rendering is pretty tightly coupled to the squadron object, which makes testing pretty ugly because we either have to spin up an openGL instance for testing, or somehow bypass anything that uses openGL.
Due to laziness and the desire to get some basics done I went with option 2.
Potential Solutions
Decouple the squadron object from the Squadron GameComponent object. Specifically go from a IS A to a HAS A relationship. A Squadron GameComponent has a squadron object it is rendering. Currently a Squadron GameComponent is a squadron object.
Potential Tasks
What does it take to call this issue complete?
renderSquadron
parameter around in the squadron factory class.