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

Create explosions #5

Open
mrhead opened this issue Dec 11, 2013 · 1 comment
Open

Create explosions #5

mrhead opened this issue Dec 11, 2013 · 1 comment
Assignees

Comments

@mrhead
Copy link
Owner

mrhead commented Dec 11, 2013

Low priority, but nice to have for future.

@mrhead
Copy link
Owner Author

mrhead commented Dec 14, 2013

I think that good start for this could be refactoring of Arena.

I would like to see add_object method instead of add_robot, add_bullet and whatever else will come later. Then we can use just update_objects instead of update_bullets, update_robots...

The only issue which I do not know solve yet, is how to implement robots and bullets method. I can search all objects for objects with class Robot, but then I introduce coupling and add new knowledge to Arena class (it needs to know class of robots, bullets...).

Unfortunately I do not have any experiences if this is good solution or not. So if anyone can advice me then it would be really great! Thanks.

Maybe I am just over thinking this, but well... I want to have beautiful and good designed code ;)

@ghost ghost assigned mrhead Dec 20, 2013
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

No branches or pull requests

1 participant