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 pause #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add pause #16

wants to merge 1 commit into from

Conversation

djecu
Copy link

@djecu djecu commented Jul 14, 2022

No description provided.

@@ -65,6 +65,7 @@ Controller::Controller(IPort& p_displayPort, IPort& p_foodPort, IPort& p_scorePo

void Controller::handleTimePassed(const TimeoutInd&)
{
if(pause) return;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Refactor is great, one small remark: I would change the name of bool variable to indicate a condition it marks. In this case name like isPaused would be more meaningful.

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