Created
January 21, 2013 00:07
-
-
Save avafloww/4582724 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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