Skip to content

Instantly share code, notes, and snippets.

@avafloww
Created January 21, 2013 00:07
Show Gist options
  • Save avafloww/4582724 to your computer and use it in GitHub Desktop.
Save avafloww/4582724 to your computer and use it in GitHub Desktop.
package me.gusta.potato;
public class PotatoManager {
public List<Potato> potatoes = new ArrayList<Potato>();
public static void newPotato() {
Potato potato = new Potato();
potato.setHealth(20);
potato.setType(PotatoType.POTATO);
potato.potato(potato.getPotato());
potatoes.add(potato);
}
public static void massacre() {
for (Potato potato : potatoes) {
potato.potato(this);
potato.potato(potato);
potato.potato(potato.getPotato());
potato.potato(potato.getParent());
potato.damage(20, potato);
potato.die(potato);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment