Skip to content

Overhaul of States - #2

Open
Garrison-Price wants to merge 2 commits into
garrison_refactorfrom
garrison_state_overhaul
Open

Overhaul of States#2
Garrison-Price wants to merge 2 commits into
garrison_refactorfrom
garrison_state_overhaul

Conversation

@Garrison-Price

Copy link
Copy Markdown

No description provided.

return instance.kicker.hasObjectPresent();
}

public static boolean kickerNoObjectPresent() {

Copy link
Copy Markdown

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.

}

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

Copy link
Copy Markdown

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.

@Mason-Lam Mason-Lam left a comment

Copy link
Copy Markdown

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