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

Move Robot implementations to .cpp files #1365

Merged
merged 5 commits into from
May 17, 2023
Merged

Conversation

DanRStevens
Copy link
Member

A bit of pre-work to help support:

The Robot code should be responsible for the effects of robots (rather than MapViewState). That means moving code into the Robot derived classes. That's easier to do and with less transitive includes when the implementation is split.

The file was transitively included through `MapViewState.h` -> `RobotPool.h` -> `Robots.h` -> `Robodigger.h` -> `Constants/Strings.h`.

By refactoring the remove the include from `Robodigger.h`, `main.cpp` failed to compile.
@DanRStevens DanRStevens merged commit 31bf34d into main May 17, 2023
@DanRStevens DanRStevens deleted the robotImplementationCpp branch May 17, 2023 16:16
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.

1 participant