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

Refactor the UserInput method #5

Open
dangillet opened this issue May 27, 2012 · 0 comments
Open

Refactor the UserInput method #5

dangillet opened this issue May 27, 2012 · 0 comments
Milestone

Comments

@dangillet
Copy link
Owner

Right now, in GameEngine, there's a UserInput method used to parse the input commands.
We should separate this into its own class.

I was thinking about a map of function pointers for the different actions. The class would parse the input, if it matches a known command, it triggers the function, passing its arguments if needed. But I'm open for your suggestions !

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