danbuis / ArmadaAIEngineNew

Revisit of an old project to create an AI for Star Wars Armada
1 stars 0 forks source link

Separate squadron rendering from squadron component logic #83

Closed danbuis closed 2 years ago

danbuis commented 2 years ago

Goal of Pull Request

Separation of concerns leads to cleaner, easier to maintain code.

Testing "business logic" on a squadron shouldn't require spinning up an OpenGL env around it.

Potential Tasks

Any other pertinent information

A Squadron Renderer object has a squadron object attached to it. All user interactions will be with the Renderer, who will pass things to the appropriate function in the squadron object. Basically a small MVC sort of situation, where the renderer is both V and C.

danbuis commented 2 years ago

More files changed than I'd like, but that's because this touched our temp main class, several tests, and took a side trip through parsing to enhance some of the logging in there.