Example #1
0
        /// <summary>
        /// Includes; Achievements, Pets, Friends
        /// </summary>
        /// <returns></returns>
        public static Player GenerateFullPlayer(string username = null)
        {
            var basePlayer = GenerateBasePlayer(username);

            // LEVEL
            var level = MockedLevel.CreateConcreteLevel();

            basePlayer.Level = level;

            // PETS
            var pet1 = MockedPet.Create(basePlayer);
            var pet2 = MockedPet.Create(basePlayer);

            basePlayer.Pets.Add(pet1);
            basePlayer.Pets.Add(pet2);

            // ACHIEVEMENTS
            var achievement1 = MockedAchievement.CreateConcreteAchievement();
            var achievement2 = MockedAchievement.CreateConcreteAchievement();
            var achievement3 = MockedAchievement.CreateConcreteAchievement();

            basePlayer.Achievements.Add(achievement1);
            basePlayer.Achievements.Add(achievement2);
            basePlayer.Achievements.Add(achievement3);

            // FRIENDS
            var mockedfriend1 = GenerateBasePlayer();
            var mockedfriend2 = GenerateBasePlayer();
            var mockedfriend3 = GenerateBasePlayer();

            var friendship1 = MockedFriend.CreateFriendship(basePlayer, mockedfriend1);
            var friendship2 = MockedFriend.CreateFriendship(basePlayer, mockedfriend2);
            var friendship3 = MockedFriend.CreateFriendship(basePlayer, mockedfriend3);

            basePlayer.Friendships.Add(friendship1);
            basePlayer.Friendships.Add(friendship2);
            basePlayer.Friendships.Add(friendship3);

            // NOTIFICATIONS

            // ??

            // ??

            // END
            return(basePlayer);
        }
Example #2
0
        /// <summary>
        /// As in, create a battle for someone to join.
        /// </summary>
        /// <returns></returns>
        public static Battle CreateConcreteBattle()
        {
            var mockedPet = MockedPet.Create();

            return(CreateBattle(mockedPet, null, 30, mockedPet));
        }