// // //=========================Question Class===================================== //This Class contains the content for every se of questions and answers. //It uses the default constructor, and has one field for tracking which //question is being called by the rest of the program. //============================================================================ class Question{ int id; Question(int i) { id = i; } int myQuestion(){ int type = 0; String Quote = quote(random(56)); switch(id) { case 0: type = 20; squares(); textFont(font, 16); text("You are working as a Teaching Assistant for a writing class and the professor has made it so all of the deadlines in the semester are due on the same day at the end of term. You have a months worth of papers to grade and only a week to get the grades in. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Set the coffee maker to automatic brew, and turn off your need to sleep for the week, entering into a deep grading trance that allows you to go without food or sleep for days without stopping.",65,208, width-75, 70); //metabolism mental endurance text("Fire up the three monitors on your computer, put a different paper on each, and start grading them simultaneously, partitioning you consciousness into three different tracks.",65,258, width-75, 70); //creativity multi-tasking textFont(font, 17); text("There are no wrong answers to these questions. If the test says something will work, chances are it will. If the test says you can do something, then you can.",10, 400, width-25, 170); break; case 1: type = 7; squares(); textFont(font, 16); text("The evil Westchester Inc. has sent some goons to 'extract' information from you about your new prototype Cheese-Powered-Flight-Boots. If Westchester gets their hands on the schematics before your patent application clears they can quash the technology, and no one will ever learn how 'Gouda it is to fly on jets of cheddar'. You must protect the plans! You can hear them in the hallway to your lab. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Leap into your concealed hovercraft, and outfox them in a daring sewer chase! After leading the goons around by their noses for an hour, you engage jet mode and leave them in the dirt.",65,208, width-75, 70); //agility advanced drive text("Initialize your carefully prepared booby traps, activate your Jam Trousers, and wait for them to be fall victim to your sophisticated array of gadgetry.",65,258, width-75, 70); //fine motor gadgets textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 2: type = 19; squares(); textFont(font, 16); text(" You've been hearing rumors about a new drug circulating in the city. Your boss at Independent Narcotic Regulation and Control(I-NaRC) has tasked you with figuring out who is providing it, and what danger it represents to the public Do You...", 10, 10, width-25, 170); textFont(font, 12); text("Find a dealer and buy a fix. After all the late night study sessions involving intravenous caffeine drips and 3 packs of cigarettes, your body can handle anything you throw at it. This will definitely provide conclusive data about the threat.",65,208, width-75, 70); //metabolism physical endurance text("Hit the street and talk up your connections to get the low-down on the new players in town. After buying a couple rounds of drinks in the seedy dive bars along the waterfront, you know everything you need to about the drug and who's behind it.",65,258, width-75, 70);//worldliness streetwise textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 3: type = 1; squares(); textFont(font, 16); text("You are disarming a bomb that has been attached to a bridge. You have just calculated the pass code, however it is 36 characters long and you have less then 5 seconds left. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Hurl the bomb into space, trusting your throwing arm to get it out of range.",65,208, width-75, 70); //strength - athletic text("Type in the numbers as quickly as possible, trusting your mad 10Key skillz to deactivate it in time.",65,258, width-75, 70); //fine motor - keyboard textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 4: type = 21; squares(); textFont(font, 16); text("You've just been informed that the MA program in Mad Science that you were planning to finish next semester has decided to revamp its graduation criteria to include 4 more courses that you haven't yet taken. You really want to finish at the end of the year so that you can move on to your internship at the Institute of Inappropriate Interfaces. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Go ahead and take 4 graduate courses and finish your thesis in one semester, laughing in the face of those who say you will explode from stress and paper writing at the end of term.",65,208, width-75, 70); //metabolism resist stress text("Insinuate yourself into the administration, flattering the right people, working the departmental politics for all they're worth, until at the end of the day, they are scrabbling to accommodate your 'special circumstances'.",65,258, width-75, 70); //charisma socialize/blend in textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 5: type = 10; squares(); textFont(font, 16); text("You are transporting the frozen severed head of a powerful psychic across state lines when you are stopped by an official looking roadblock. Any delays could result in the head thawing before you have time to get it to your secret lab for analysis. The guards refuse to identify what agency they work for, and seem eager to cause trouble. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Get out of the car slowly, before surprising them with your mantis style kung fu. Moments later, the guards are incapacitated, disarmed, and inexplicably covered in paint.",65,208, width-75, 70); //agility Martial Arts text("Observe that one of the guards is wearing the pin of an infamous secret society that you once infiltrated (The Nihilist Anarchist Horde...N.A.H.) You flash the secret hand sign, and drive on through.",65,258, width-75, 70); //worldliness perception textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 6: type = 2; squares(); textFont(font, 16); text("You are undercover, attending a dinner party hosted by a wealthy arms trader who is known for his use of biological weapons. You suspect that your cover has been blown, when your host pointedly suggests that you 'Try the Wine...it's delicious.' It is most certainly poisoned. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Throw over the table and challenge your host to a saber duel!",65,208, width-75, 70); //strength - Historical weapons text("Drink the wine, trusting in your long developed immunity to poison to save your life.",65,258, width-75, 70); //metabolism - Metabolize substance textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 7: type = 16; squares(); textFont(font, 16); text("You are working on a school project that uses very processor intensive piece of graphical software that takes forever to run. Your deadline is looming, and you need to get as much speed as possible out of the project. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Upgrade the system's hardware and fine tune the clock speed for maximum performance, using your l33t overclocking skillz.",65,208, width-75, 70); //fine motor computer hardware text("Dig into the software's code, and optimize the hell out of it using your l33t programming skills.",65,258, width-75, 70); //creativity program textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 8: type = 3; squares(); textFont(font, 16); text("Your team of engineers is dividing up tasks for the bi-annual 'Turn this pile of broken old crap into a siege weapon' competition. There are two roles left unoccupied. Do you volunteer to...", 10, 10, width-25, 170); textFont(font, 12); text("Operate the gigantic magnetic crane and vehicle crusher. Vroom!!! Crunch!!! HAHAHAHAHAHAHA!!!!!",65,208, width-75, 70); //strength - large machinery text("Design the mechanism for the throwing arm, using your extensive knowledge of trebuchets, catapults, and balistas",65,258, width-75, 70); //intellect - Knowledge of - siege weapons! textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 9: type = 9; squares(); textFont(font, 16); text("You have been sent by an anonymous benefactor to 'acquire' the last mint edition copy of Action Comics #1 in the world. The museum where it is on display uses an advanced randomly shifting laser grid on all approach vectors. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Use your training in Capoeira to flow through the laser grid untouched.",65,208, width-75, 70); //agility acrobatics text("Hack into the security system and deactivate the laser grid.",65,258, width-75, 70); //intellect learn software textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 10: type = 24; squares(); textFont(font, 16); text("You completely flaked out on the deadline for a class reading assignment, and now find yourself in the middle of a class discussion about material that you have not read yet. You have a reputation to maintain, dammit! Any minute the professor is going to turn to you and ask for your response to Umberto Eco's 'Poetics of the Open Work'. What do you do?", 10, 10, width-25, 170); textFont(font, 12); text("Whip out the paper and invoke your finely honed reading abilities, blazing through it at lightning speed, and absorbing every little detail.",65,208, width-75, 70); //Intellect Speed Read text("Calmly contemplate the other readings that you have seen in the class, and listen for ways to connect them to the discussion, trusting in your finely honed improvisational skills to carry you through.",65,258, width-75, 70); //charisma role-play textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 11: type = 0; squares(); textFont(font, 16); text("A giant boulder is about to crush an old lady (who for some reason has placed herself in harm's way). Concerned citizen that you are, you leap to her aid, knocking her to safety. You now find yourself threatened by the same boulder. Time is short! Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Brace yourself and muscle the boulder out of the way!",65,208, width-75, 70); //strength - lift/push text("Nimbly dodge around the bolder!",65,258, width-75, 70); //agility - dodge textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 12: type = 15; squares(); textFont(font, 16); text("Your private jet crashes in the middle of the Rockies. You are the only survivor. You have very little food or water, and it's getting colder by the minute. Do you... ", 10, 10, width-25, 170); textFont(font, 12); text("Whip out your trusty leatherman, and construct a jet-fuel powered sled from the wreckage, and strike out in search of help.",65,208, width-75, 70); //fine motor multi-tool text("Construct a sturdy shelter out of the wreckage, set out traps for game, and settle in for a comfortable and solitary winter.",65,258, width-75, 70); //worldliness Survivalism textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 13: type = 26; squares(); textFont(font, 16); text("You are writing a scathing article about a local pharmaceutical corporation in your weblog. You have heard rumors that they have been pulling homeless people off of the street to participate in illicit medical experiments, but you don't have any concrete evidence. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Make the rounds of the homeless shelters and cardboard box communities, and try to track down some trace of the corporation's inappropriate activities.",65,208, width-75, 70); //worldliness gather/information text("Use you charm to persuade the corporation's receptionist to give you a list of recently 'downsized' employees who might be willing to go on record as witnesses to the illegal behavior.",65,258, width-75, 70); //charisma persuade textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 14: type = 5; squares(); textFont(font, 16); text("You are playing a Live Action Role Playing game with some friends late at night. It's 2:00am and the bars disgorge their drunken patrons into the street. Suddenly your black-clad, cloak and top hat wearing group is surrounded by angry hockey fans. Their team just lost the big game, and they're pissed off! One of them shouts 'Lookit the sissies! You fags like playing dress up?' and suddenly you and your friends find yourselves being pelted with trash and rocks. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Draw upon your Jedi training, and reflect every projectile at your opponents, almost effortlessly.",65,208, width-75, 70); //strength - - block text("Grab the roll of duct-tape that you always carry and swiftly construct an inpenetrable and sticky shield.",65,258, width-75, 70); //creativity - duct tape textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 15: type = 13; squares(); textFont(font, 16); text("The faucet in the sink in your secret underground lab is leaking! Horrors! The drawback of having a secret lab is not being able call a plumber to fix this type of thing (after all, what address would you give out to a building that doesn't exist on any maps?) Instead you are going to have to solve this problem yourself. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Break out the rotary saw, drill press, dremel tool, and nailgun, and apply them furiously until not only is the leak fixed, but your sink area has been completely 'remodeled' in the process.",65,208, width-75, 70); //Fine motor Power tools text("Tap into your zen-like inner calm, erecting a mental barrier between yourself and the sound of dripping water.",65,258, width-75, 70); //metabolism resist mental discomfort textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 16: type = 23; squares(); textFont(font, 16); text("You are presenting your most recent invention--an AI enabled underwear drawer --at the Symposium for Wacky Engineering And Technology (SWEAT). An hour before your speech, a rival engineer from Westchester Inc. unveils their new 'iDrawer', which clearly is a rip-off of your work! What do you do?", 10, 10, width-25, 170); textFont(font, 12); text("You have an internet connection. You know how to use it. Spend that hour tracking down the security leak that allowed them to copy your design, and then reveal them for the fraud's they are!",65,208, width-75, 70); //intellect Study research text("Recognize that the situation you are in is clearly part of some greater fictional 'game'. Assume that as the protagonist, you can get away with things that the 'NPCs' in the world can't. Spend the hour appealing to the 'GM' to let you sabotage the iDrawer and not get caught.",65,258, width-75, 70); //creativity post modern textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 17: type = 12; squares(); textFont(font, 16); text("You are in a bank, depositing your weekly paycheck when a group of six 'Nixons' barges in, armed to the teeth and screaming for everyone to 'get on the ground before they blow the room away!' One of them grabs the elderly bank teller from behind the counter, and says 'No one will dare come after us, as long as we've got grandma here!' Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Grab your concealed six shot snub nose, and swiftly execute the 'tricky dicks' with six perfectly placed shots to their heads.",65,208, width-75, 70); //agility modern weapons text("Offer yourself as a hostage, arguing that since you are young, healthy, and wealthy, you will have more value to them as a hostage then an old woman who might die of a stress related heart attack at any moment. Hopefully they will take you to their hideout, or else reveal some of their plan while you plot your escape, and figure out how to bring them to justice.",65,258, width-75, 75); //charisma Bargain/Haggle textFont(font, 17); text(Quote,10, 360, width-25, 170); break; case 18: type = 4; squares(); textFont(font, 16); text("Cultists of the church of Losimon have captured your best friend, and are forcing her to watch corporate training videos in their cavernous lair. No one should be forced to suffer this fate! You infiltrate their lair but can't locate the viewing room where she is being held. Do you... ", 10, 10, width-25, 170); textFont(font, 12); text("Grab a cultist and describe what horrible fate is in store for them (enforced personal hygiene, repeated YouTube exposure) until they break and tell you everything you want to know.",65,208, width-75, 70); //strength - intimidate text("Try and overhear the conversation in the dining hall, and hope that you can free her without the cultists ever knowing you were here.",65,258, width-75, 70); //worldliness -eavesdrop/ lip-read textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 19: type = 27; squares(); textFont(font, 16); text("Your roommate is out of town for the weekend. You decide to watch Highlander on their big screen TV, knowing they won't mind. When you sit down on their couch you hear a sickening crunch. Somehow you have managed to sit on and crush the television remote control. What do you do?", 10, 10, width-25, 170); textFont(font, 12); text("You're handy enough to fix almost anything. By the time you are done with it, the remote is in one piece again, and works better then it did before.",65,208, width-75, 70); //creativity repair text("You have no idea how to fix this. Instead, you find a universal remote control at a local pawn shop and leave it for your roommate with a note explaining what happened.",65,258, width-75, 70); //charisma tact textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 20: type = 17; squares(); textFont(font, 16); text("You are at a concert for They Might Be Giants, listening to the opening act, when a roadie comes on stage and announces that the band has been involved in an unfortunate giant-puppet-head related accident and will be delayed. The audience boos and hisses and you can sense a riot starting. Something must be done to soothe the angry crowd. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Whip out your Guitar Hero controller and treat the crowd to a perfect rendition of Bark at the Moon on Expert level difficulty!",65,208, width-75, 70); //fine motor twitch reflex text("Whip our your Fender Stratocaster and treat the crowd to a perfect rendition of Joe Satriani's 'Summer Song'!",65,258, width-75, 70); //charisma Perform textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 21: type = 6; squares(); textFont(font, 16); text("You have been cornered by an angry gang of Baltislovenkenian thugs. They describe in great detail how they intend to render you unrecognizable to anyone who may have once known you, and you gather that they are not talking about giving you a Botox treatment. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Challenge their leader to fisticuffs - his Baltislovenkenian martial arts are no match for your Drunken Welsh Street Fighting.",65,208, width-75, 70); //strength - fisticuffs text("Address them in their native tongue and convince them that you are a long lost cousin of the tribe. End the night singing drinking songs with them in a nearby pub, and smashing beer bottles over the leader's head.",65,258, width-75, 70); //charisma - bluff textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 22: type = 25; squares(); textFont(font, 16); text("You are building a mechanical device for sorting, storing, and displaying your comic book collection, and you are having trouble with the 'safe shuffle' mechanism. You have exhausted the material possibilities of your workshop, and so resign yourself to leaving the house in search of supplies. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Hit up all the surplus stores, hobby shops, and junkyards, until you have found the right combination of parts.",65,208, width-75, 70); //worldliness Forage text("Call in a marker with a friend at a machine shop and score an hour of time with the 3 axis mill and lathing machine so you can make custom parts.",65,258, width-75, 70); //creativity assemble/build textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 23: type = 11; squares(); textFont(font, 16); text("A shipment of prototype Playstation Fours is arriving from Japan tonight. You friends dare you to steal one, never suspecting that you might actually try it. Little do they know that you've been secretly training for just such an outing for most of your life. Getting past the gate guard at the docks is easy but gaining access to the container is going to be very difficult, because Sony has sent a proprietary AIBO watchdog unit to guard the ships cargo hold. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Use your ninja training to disappear into the shadows until robo-dog is looking the other way, before ghosting past him to snag the console.",65,208, width-75, 70); //agility hide text("Improvise a guard costume, fabricate a security badge, and then 'relieve' Aibo of his duty in the guise of the next watch.",65,258, width-75, 70); //creativity disguise textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 24: type = 22; squares(); textFont(font, 16); text("You have been a loyal customer of the Geek Store for some time now. You love being able to buy comic books and caffeinated beverages at the same place where you go to hang out with your friends and play video games, or watch geeky movies. When a job opening is posted for a new manager, you desperately want to apply, but you don't have the qualifications for the position. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Enroll in a crash course in business management online in order to develop the skills you need.",65,208, width-75, 70); //intellect Schoolin' in text("Use your mad Photoshop skillz to forge a perfect diploma and college transcript from a reputable business college.",65,258, width-75, 70); //worldliness forgery textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 25: type = 8; squares(); textFont(font, 16); text("The alien invaders live among us. You always suspected this and when you found one of the secret portals to their orbital fleet you knew at last that you would be able to get the proof that had long been denied to you. You just need to figure out a way to get to the ship without the extraterrestrial invader's detecting you. Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Use your catlike balance and precision to cross through the portal without being detected. A shadow makes more noise then you do.",65,208, width-75, 70); //agility move silently text("Barge into the portal, trusting your thick skin to protect you from the aliens puny weapons. Mum always said you were hardheaded, and today you really get a chance to prove her right.",65,258, width-75, 70); //metabolism, resist physical discomfort textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 26: type = 18; squares(); textFont(font, 16); text("Your archrival at the Baltislovenkenian Revolutionary Anarchy Intelligence Network (BRAIN) has challenged you to a public debate to conclusively prove which of you is the greatest thinker in the espionage community. You gladly accept the challenge, because you know that...", 10, 10, width-25, 170); textFont(font, 12); text("Your powers of concentration are so profound as to border on psychic. You can anticipate his arguments as quickly as he will be able to formulate them.",65,208, width-75, 70); //metabolism Concentration text("Your powers of retention have allowed you to recall every detail of every piece of information you have ever encountered with absolute clarity. He will not stand a chance. ",65,258, width-75, 70); //intellect Photographic memory textFont(font, 17); text(Quote,10, 400, width-25, 170); break; case 27: type = 14; squares(); textFont(font, 16); text("Your cell phone keeps going off when you don't want it to. You'll be sneaking around in a ventilation shaft somewhere, and suddenly 'Play that Funky Music White Boy' is echoing around--setting off security alarms--causing a ruckus! Something must be done! Do you...", 10, 10, width-25, 170); textFont(font, 12); text("Crack open the phone, disconnect the ringer mechanism, and wire the notification system into an electrode in your skull",65,208, width-75, 70); //fine motor electronics text("Devise a sophisticated voicemail system, capable of handling most of the situations that people call you about, and leave the cell phone behind when on a job.",65,258, width-75, 70); //intellect problem solving textFont(font, 30); text("This is the last question. Please be patient while we calculate your result, as it may take a minute. Thank you!",10, 400, width-25, 170); break; } return type; } //===============Method for Drawing the colored fields in the background--------------------- void squares(){ fill(0); rect(0,0, width, height); fill(25,(random(100)),(random(150))); rect(5, 5, width - 10, 190); fill((random(20,30)),(random(20,30)),(random(90,110))); rect(5,200, width - 10, 145); fill(45,(random(45)),(random(45))); rect(5, 350, width - 10, 240); fill(255); textFont(font, 25); text("Notes:", 10,375); } }