//
class Animal { }
class Cat extends Animal { }
class Lolcat extends Cat { }
class Longcat extends Cat { }
class Tacgnol extends Longcat { }
class Pokemon extends Animal { }
class Human extends Animal { }
class Trainer extends Human { }
//
while (Universe.hasMoreSpaceFor(longcat)) {
longcat.length ++;
}
//
for (Cat lolcat : lolcats) {
you.look(lolcat);
you.lol();
}
//
if (lolcat.isHungry()) {
if (lolcat.canFind(Cheeseburger.class)) {
Cheeseburger chezburgr = (Cheeseburger) lolcat.find(Cheeseburger.class);
lolcat.eat(chezburgr);
} else {
lolcat.die();
}
}
//
while (you.hasMoreIdeas()) {
Idea idea = you.nextIdea();
if (idea instanceof Lolcat.Idea) {
Image lolcatimage = you.getSkills(Skill.PHOTOSHOP).makeFromIdea(idea);
Internet.post(lolcatimage, Internet.Type.IMAGE);
}
}
//
try {
Bomb[] bombs = (Bomb[]) you.onHand();
for (Bomb bomb : bombs) {
if (you.canFind(Human.class)) {
Human target = you.find(Human.class);
you.throwObject(bomb, target);
}
}
} catch (ClassCastException e) {
while (you.canFind(Bomb.class)) {
you.get(you.find(Bomb.class));
}
}
//
if (PokemonWorld.inBattle(you)) {
Pokemon wildPkmn = you.find(Pokemon.class);
Pokemon yourPkmn = you.getParty().getPokemon("Turtwig").send();
while (! wildPkmn.getStatus(Pokemon.FAINT)) {
if (wildPkmn.getHp > 0.5) {
yourPkmn.useMove("Tackle", wildPkmn);
} else {
Object result = ((PokeBall) you.getBag().find("Pok\x00E9 Ball")).throwAt(wildPkmn);
if (result != null) {
((Pokedex) you.getItem("Pok\x00E9dex")).register(wildPkmn);
break;
}
}
}
}