import java.util.Date;
public class Worker extends MidClassPerson {
private static Date today = new Date();
private boolean isWeekend = false;
private static boolean sleeping = false;
private static int sleepingTime = 0;
private int happiness = 0;
private String workplace = System.assignWorkPlace();
private String studies = System.assingStudies();
private Money income = System.assignAverageIncome();
private Money outcome = System.hellMode();
private Brain brain = System.brainWash();
public static void main(String[] args) {
int day = today.getDay();
while (!isWeekend) {
isWeekend = false;
if(day>5 && day<8) {
wakeUp();
work();
stopThinking();
work();
}
else {
isWeekend = true;
riseHappiness(new String("notmuch"), new String("rememberwhoyouare"));
if(day==7){
decreaseHappiness(new String ("mondayiscoming"));
study(new String ("fornothing"), new String("dontthink"));
stopThinking();
}
brainFuck().drugs();
riseHappiness(new String("falsehappiness"), new String("dreamabout"));
}
sleep(5);
day = today.getDay();
}
}
@Override
private static void sleep(int time) {
if(!sleeping) {
sleeping = true;
sleepingTime = time;
disconnect();
int hour = today.getHours();
while(sleepingTime>0){
if(hour==day.getHours()+1) {
sleepingTime--;
}
}
}
}
@Override
private static void wakeUp() {
if(sleeping) {
sleeping=false;
}
}
public Money startCrisis(Date anytime) {
happiness = 0;
youSpentTooMuch(this);
setWorkPlace(null);
System.collectMoney(this);
if(income==0) {
System.collectHome(this);
System.forbidLiving(this);
}
while (!System.isCrisisEnding()) {
System.continueCollecting(this);
try {
findJob(this.isCorrupt());
} catch (NoExperienceException e) {
System.out.println("No experince, no job. No job, no experience.");
} catch (ElderException e) {
System.out.println("You are too old.");
} catch (YoungerException e) {
System.out.println("You are too young.");
} catch (StartingLittleBusinessException e){
System.out.println("You don't have money.");
} catch (ArmyException e) {
System.out.println("Welcome!");
}
}
}
}
Wu Ying Ren 死
Cap comentari:
Publica un comentari a l'entrada