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

Make Graphic::draw(...) const #75

Open
qualiaa opened this issue Jul 6, 2014 · 0 comments
Open

Make Graphic::draw(...) const #75

qualiaa opened this issue Jul 6, 2014 · 0 comments
Milestone

Comments

@qualiaa
Copy link
Member

qualiaa commented Jul 6, 2014

Allowing rendering to affect game logic can lead to unexpected side-effects when, for example, rendering the game while in a "paused" state.

To make this change, FrameList::draw() cannot change the frame of the animation, nor can it check for the elapsed timer's state, making this an awkward issue.

We should potentially allow Entity::draw() to be non-const, to allow users to do non-const things at their own discretion - thoughts?

@qualiaa qualiaa added this to the v1.0 milestone Jul 6, 2014
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