Example #1
0
        public Story(Player[] playersList)
        {
            looser = 0;
            finalist1 = 0;
            finalist2 = 0;
            winner = 0;

            storyDone = false;
            intro = true;
            ending = false;
            cutscene = false;
            players = playersList;

            script = new String[7,7];
            pageNumber = 0;
            secondaryPageNumber = 0;
            miniGameNumber = 0;
            miniGameReady = false;
            script[0,0] = "An evil wizard named Kostaba once lived in a \n\n faraway place. Despite being evil, he was a \n\n regular person when it came to hobbies. He enjoyed \n\n fishing, baseball but most of all gaming. \n\n His favorite game was Battle Rooms, a multiplayer \n\n party game (yes like Mario Party) created by \n\n four young developers. One day, Kostaba grew \n\n weary of the same old games.";
            script[1, 0] = "So Kostaba did what any rational evil wizard \n\n would do; he kidnapped the game developers \n\n and trapped them in a room. After the  wizard \n\n demanded them to create for him a new Battle Rooms \n\n game, the lead developer explained that this \n\n could not be done since the copyrights belonged \n\n to Apple.";
            script[2, 0] = "A new idea arose, the wizard could re create \n\n the game using his spectacular magic \n\n powers while the developers would compete for \n\n the championship. The prize for victory would be a \n\n single wish granted by the wizard . . .";
            script[3,0] = " . . .";

            script[3, 0] = "Your next test will be a team game. We will \n\n balance out the teams by matching 1st \n\n place with last place.";
            script[3, 1] = " seem\'s to be having a hard time. \n\n However! This can still be anybody\'s game. \n\n Our lucky loser has a chance to redeem themselves \n\n  with a win on this 1 vs. 3 type game.";
            script[3, 2] = " Ladies and gentlemen, our two finalists \n\n await their final test. Who will be the \n\n last one standing . . . ";
            script[3, 3] = "CONGRATULATIONS!!  \n\n you have won, what is your wish?";

            script[4, 0] = "Even though these games were fun, the hero  \n\n wished to return home with the rest of the team. \n\n They all missed their families and  their day \n\n jobs as game developers. After crying for 6 \n\n hours, the wizard finally fulfilled his promise \n\n and granted the wish. He would have to wait \n\n for Battle Rooms 2 like everyone else.";
        }
Example #2
0
 private void PopulatePlayers()
 {
     for (int i = 0; i <= (numberOfPlayers-1); i++)
     {
         Players[i] = new Player();
         Players[i].PlayerColor = AssignPlayerColor(i);
     }
 }
Example #3
0
        public MiniGameFactory(Player[] players)
        {
            this.players = players;
            rand = new Random();
            miniGameList = new List<KeyValuePair<MiniGamePlayerType, string>>(0);

            // populate list with mini games
            miniGameList.Add(new KeyValuePair<MiniGamePlayerType, String>(MiniGamePlayerType.ThreeVOne, "Fireball Tactics"));
            miniGameList.Add(new KeyValuePair<MiniGamePlayerType, String>(MiniGamePlayerType.TwoVTwo, "Lumberjack Bustle"));
            miniGameList.Add(new KeyValuePair<MiniGamePlayerType, String>(MiniGamePlayerType.FFA, "Bumper Balls"));
            miniGameList.Add(new KeyValuePair<MiniGamePlayerType, String>(MiniGamePlayerType.OneVOne, "Dueling Dunes"));
        }
Example #4
0
 public PlayerFactory()
 {
     Players = new Player[numberOfPlayers];
     PopulatePlayers();
 }
Example #5
0
 public Score(Player[] players)
 {
     this.players = players;
     pointsAreDone = false;
     IsFinished = false;
 }