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

ADD: pass options to game state's setup() method #35

Merged
merged 2 commits into from Jan 30, 2012
Merged

Conversation

janhancic
Copy link
Contributor

jaws.start() and jaws.switchGameState() now accept a third parameter which is passed to game state's setup() method

jaws.start() and jaws.switchGameState() now accept a third parameter which is passed to game state's setup() method
@ippa
Copy link
Owner

ippa commented Jan 27, 2012

I can seenhow this is usable but i dont get the variablename..it has nothing to do with game objects? I also need to test a small thning before merging.

@janhancic
Copy link
Contributor Author

Maybe "game_state_setup_options" would be better, as in "options for setup() in a given game state".

@ippa
Copy link
Owner

ippa commented Jan 28, 2012

indeed, could you rename it? afaik this doesn't break any old code since function foo() { .. }; foo(new_arguments); work just fine.

@janhancic
Copy link
Contributor Author

Sorry for my late response, I was sick (still am) trough the weekend. I've renamed the variable now.

ippa pushed a commit that referenced this pull request Jan 30, 2012
ADD: pass options to game state's setup() method
@ippa ippa merged commit 9d04599 into ippa:master Jan 30, 2012
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.

None yet

2 participants