using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; namespace Sprint3_actual.Text { public class TextFactory { private static TextFactory instance = new TextFactory(); public static TextFactory Instance { get { return instance; } } private TextFactory() { } public IText CreateText(int type, int xPos, int yPos) { switch (type) { case 0: return new ScrollingText("LOW COUPLING AND HIGH\nCOHESION IS THE SECRET.", xPos, yPos, -1, Color.White); case 1: return new ScrollingText("I'VE BEEN EXPECTING YOU.", xPos, yPos, 4.0, Color.White); case 2: return new ScrollingText("WELL... SHALL WE BEGIN?", xPos, yPos, 4.0, Color.White); case 3: return new ScrollingText("THIS ATTACK WILL BE...", xPos, yPos, 2.5, Color.White); case 4: return new ScrollingText("E L E C T R I F Y I N G!!", xPos, yPos, 2.5, Color.Goldenrod); case 5: return new ScrollingText("WATCH YOUR FOOTING!", xPos, yPos, 3.0, Color.White); case 6: return new ScrollingText("HMMMMMMMMMM...", xPos, yPos, 3.0, Color.White); case 7: return new ScrollingText("WELL WELL WELL...", xPos, yPos, 3.0, Color.White); case 8: return new ScrollingText("YOU ARE STRONGER THAN\n I EXPECTED!", xPos, yPos, 4.0, Color.White); case 9: return new ScrollingText("YOU ARE QUITE STRONG\n FOR A HUMAN!", xPos, yPos, 4.0, Color.White); case 10: return new ScrollingText("FINAL DESTINATION\n3 STOCK NO ITEMS MLG\n SWAG Y-Y NOSCOPE\nLOL GET REKT GANON.", xPos, yPos, -1, Color.White); case 11: return new ScrollingText("H- HOW!? I WAS SUPPOSED\n TO BE A GAMER!", xPos, yPos, 4.0, Color.White); case 12: return new ScrollingText("OH WELL.", xPos, yPos, 1.5, Color.White); case 13: return new ScrollingText("NOW I WILL SLEEP FOR\n THE OTHER 100 YEARS.", xPos, yPos, 4.0, Color.White); case 14: return new ScrollingText("ENJOY YOUR QUEST,", xPos, yPos, 2.5, Color.White); case 15: return new ScrollingText("SIGMA...", xPos, yPos, 1.5, Color.LightGreen); case 16: return new ScrollingText("UNTIL NEXT TIME.\n SO LONG, BOZO", xPos, yPos, 4.0, Color.White); case 17: return new ScrollingText("wait don't attack those", xPos, yPos, 3.0, Color.White); case 18: return new ScrollingText("WATCH YOUR HEAD!", xPos, yPos, 3.0, Color.White); default: return new NormalText("Default case", xPos, yPos); } } } }