-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: garrison_refactor
Are you sure you want to change the base?
Conversation
@@ -176,8 +213,11 @@ public static boolean kickerHasObjectPresent() { | |||
return instance.kicker.hasObjectPresent(); | |||
} | |||
|
|||
public static boolean kickerNoObjectPresent() { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
No description provided.