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

Implement a service provider/locator class #2

Open
jstamant opened this issue Sep 9, 2016 · 0 comments
Open

Implement a service provider/locator class #2

jstamant opened this issue Sep 9, 2016 · 0 comments

Comments

@jstamant
Copy link
Owner

jstamant commented Sep 9, 2016

Consider implementing a service, service provider, and service locator class.

Right now, game entities occasionally refer to the window and mouse for performing logic. The EntityManager is providing these references upon entity creation. Perhaps the service pattern may help decoupling.

Refer to http://gameprogrammingpatterns.com/service-locator.html for further information regarding the service pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant