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

Overhaul of States #2

Open
wants to merge 2 commits into
base: garrison_refactor
Choose a base branch
from

Conversation

Garrison-Price
Copy link

No description provided.

@@ -176,8 +213,11 @@ public static boolean kickerHasObjectPresent() {
return instance.kicker.hasObjectPresent();
}

public static boolean kickerNoObjectPresent() {

Choose a reason for hiding this comment

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

The static methods kind of ruin the point of the Singleton pattern.

kicker = new Kicker();
}

public Command setState(HopperState state) {
currentState = state;

Choose a reason for hiding this comment

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

This does not work because it only sets the state the first time the method is called, not every time the command is run. This is also probably the reason the isState function doesn't work because == works for enum values.

Copy link

@Mason-Lam Mason-Lam left a comment

Choose a reason for hiding this comment

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

Bug in the hopper changes, more in depth on comments left on file.

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