Skip to content

Minor refactoring#14

Open
isha wants to merge 2 commits into
masterfrom
refactor
Open

Minor refactoring#14
isha wants to merge 2 commits into
masterfrom
refactor

Conversation

@isha

@isha isha commented Oct 4, 2013

Copy link
Copy Markdown
Owner

The contruct_map method in main was not working. This changes them to be clearer. Also implemented obstacles for a map in a linked list.

quick review please @joeycarlos @rapjac @KCJWagner

Comment thread software/game/obstacle.h

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make a function for setting, obstacle->next. Also we're probably going to need set_obstacle_coordinates later on when we start moving the obstacle, I think we should leave it in there.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from that, all the changes look good.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

method to add new obcstacles will be covered in a separate PR.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding keeping this method, I don;t agree. It isn't used anywhere right now (and unused in the code I'm righting to generate new obstacles).

Having usused code, creates problems. We have to remember exactly where something was referenced and keep chaning it as we modify or create new code. Since its isnt used anywhere, the problems arent obvious either. When someone wants to use this, they can add it later. Its only 4 lines.

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.

2 participants