Skip to content

Instantly share code, notes, and snippets.

@itsbriany
Created November 30, 2019 00:01
Show Gist options
  • Save itsbriany/568808578e90f2187c268764fd2450fa to your computer and use it in GitHub Desktop.
Save itsbriany/568808578e90f2187c268764fd2450fa to your computer and use it in GitHub Desktop.
public final void changeMass(final int n) {
this.setState("mass", this.getState("mass", 0) + n);
}
public final void changeHappy(final int n) {
this.setState("happy", this.getState("happy", 0) + n);
}
public final void changeClean(final int n) {
this.setState("clean", this.getState("clean", 0) + n);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment