Humor Humor

«Vissza

Néhány ismert mozifilm kódja

Monty Python: Gyaloggalopp

King Arthur = new King();
Knight Bedevere = new Knight();
Knight Robin = new Knight();
Knight Lancelot = new Knight();
Knight Galahad = new Knight();
QuestItem HolyGrail = new QuestItem();

public void init(){
     Arthur.set3(5);
     Robin.setBraveness(0.0);
     Lancelot.setBraveness(Float.POSITIVE_INFINITY);
     Galahad.setPurity(Float.POSITIVE_INFINITY);
     Bedevere.setIQ(200.0);
     HolyGrail.setLocation("French castle");
}

public void BringOutDeads(){
     Villager Mortician = new Villager();
     Villager Customer = new Villager();
     Villager DeadMan = new Villager();
     Customer.setParent(DeadMan);
     for(int i = 0; i < 10; i++){
          getLogger.out("Bring out your dead!", Mortician);
     }
     Mortician.setCustomer(Customer);
     if(!DeadMan.isDead()){
          Mortician.setRefuseService(true);
          getLogger.out("I am not dead!nI feel happy.", DeadMan);
     }
     DeadMan.setUncosious(true);
     Mortician.setRefuseService(false);
}

public void BlackKnight(){
     Knight BlackKnight = new Knight();
     BlackKnight.setSelfConfidence(Float.POSITIVE_INFINITY);
     BlackKnight.setEnemy(Arthur);
     BlackKnight.setHand(BlackKnight.getHand()-1);
     BlackKnight.setHand(BlackKnight.getHand()-1);
     BlackKnight.setLeg(BlackKnight.getLeg()-1);
     BlackKnight.setLeg(BlackKnight.getLeg()-1);
}

@Deprecated
public boolean isWitch(Woman woman){
     boolean result = true;
     if(checkAnyVillagersNewt() == false){
           if(woman.isFlammable() || (woman.getMaterial().equals("wood") && !woman.getMaterial().equals("stone"))){
                  if(woman.isFloatingOnWater()){
                         if(woman.getWeight()>=(new VerySmallRock()).getWeight()){
                              result = true;
                         } else if(woman.getWeight()>=(new Apple()).getWeight()){
                              result = true;
                         } else if(woman.getWeight()>=(new Mud()).getWeight()){
                              result = false;
                         } else if(woman.getWeight()>=(new Cherries()).getWeight()){
                              result = false || true;
                         } else if(woman.getWeight()>=(new Church()).getWeight()){
                              result = mainDecision.getRandomDecision();
                         } else if(woman.getWeight()>=(new Cider()).getWeight()){
                              result = true;
                         } else if(woman.getWeight()>=(new Bread()).getWeight()){
                              result = false;
                         }
                  }
           }
     } else {
           result = false;
     }
     return result;
}

public boolean isWitch2(Woman woman){
     return(woman.getWeight()>=(new Duck()).getWeight());
}

Kapj el ha tudsz