Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splits Engine implementation into multiple classes #178 #196

Merged
merged 2 commits into from
Dec 12, 2015

Conversation

dsaltares
Copy link
Member

Engine is no longer a God-like class. The interface remains the same but it now delegates its logic onto:

  • EntityManager
  • SystemManager
  • FamilyManager
  • ComponentOperationHandler

The internal classes are package-protected because there's absolutely 0 need to expose them to the user. I could have made them internal private classes of the Engine, but it would have defeated the purpose.

I've added unit tests for each one of them and maintained EngineTests as integration tests.

@dsaltares
Copy link
Member Author

@Lusito @antag99 What do you guys think? Feedback is appreciated!

Engine is no longer a God-like class. The interface remains the same but
it now delegates its logic onto:
- EntityManager
- SystemManager
- FamilyManager
- ComponentOperationHandler
@dsaltares
Copy link
Member Author

Okay, merging now, we can make changes to this later. I think it's good because the smaller classes know nothing about the Engine, everything has unit tests (and the Engine's tests now become more of integration tests).

dsaltares added a commit that referenced this pull request Dec 12, 2015
Splits Engine implementation into multiple classes #178
@dsaltares dsaltares merged commit 2448b12 into libgdx:master Dec 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant