Skip to content

Instantly share code, notes, and snippets.

@avafloww
Created January 21, 2013 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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