0 Members and 2 Guests are viewing this topic.
if (bored && hasSpareTime) { makeYetAnotherAlienBreed();}else { daydreamAboutAnotherAlienBreed();}
/* * life.c * * Copyright 2013 shmibs <[email protected]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * * */#include <stdio.h>typedef struct show { video episodes[26]; video extras[4];} show;typedef enum p_type { AXE, C, PERL, BASH, ASM, DESKTOP_CONFIGS, FIXING_ARCH_AFTER_HAVING_BROKEN_IT_YET_AGAIN} p_type;typedef struct project { p_type type; int difficulty;} p_type;typedef struct chan { member member_list[40]; /* i never talk in channels with more than 40 people. they're too hectic */ topic current_topic;} chan;typedef struct amusement_node { show current_anime; video current_film; book current_book; album current_album; chan current_channel; project current_project; amusement_node* next;} amusement_node;int main(int argc, char **argv) { int depressed, busy=FALSE, day=0, age=0; amusement_node* head=NULL, temp; while(TRUE) { while(schoolwork_check()) { do_schoolwork(); depressed=TRUE; busy=TRUE; } if(head != NULL) { process_amusement(head); if(!(rand()%3)) { depressed=FALSE; } else { depressed=TRUE; } temp=head->next; free(head); head=temp; busy=TRUE; } if(!busy) depressed=TRUE; day++; if(!(day%365)) { age++; } if(!(rand%( (100-age)*2000))) break; } return 0;}
public static void getUp(){ UnderwearDrawer.takeRandom().wear(); body.arm.pushAway(blanket); body.performMotion(Motion.stand_up); body.legs.walkTo(closet.getLocation()); body.arm.interact(closet.door,Action.open); tshirtStack.takeTopOne().wear(); sweaterStack.takeTopOne().wear(); pants.takeRandom(); body.arm.interact(closet.door,Action.close); body.legs.walkTo(room.door.getLocation()); body.arm.interact(room.door,Action.open); body.legs.walkTo(stairs.getLocation()); body.performMotion(Motion.walkDownStairs);}