Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Player"/> class.
        /// </summary>
        internal Player()
        {
            this.Time = new Time();

            this.Facebook   = new Facebook(this);
            this.Google     = new Google(this);
            this.Gamecenter = new Gamecenter(this);
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Player"/> class.
        /// </summary>
        internal Player()
        {
            this.Achievements = new List <Data>(60);
            this.Missions     = new List <Data>(30);
            this.Logs         = new List <AvatarStreamEntry>(50);

            this.Facebook   = new Facebook(this);
            this.Google     = new Google(this);
            this.Gamecenter = new Gamecenter(this);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="Player"/> class.
        /// </summary>
        /// <param name="Device">The device.</param>
        /// <param name="HighID">The high identifier.</param>
        /// <param name="LowID">The low identifier.</param>
        internal Player(Device Device, int HighID, int LowID) : this()
        {
            this.Device = Device;
            this.HighID = HighID;
            this.LowID  = LowID;

            this.Objects    = new Objects(this);
            this.Facebook   = new Facebook(this);
            this.Google     = new Google(this);
            this.Gamecenter = new Gamecenter(this);

            this.Resources    = new Resources(this, true);
            this.ResourceCaps = new Caps(this);

            this.Variables = new Variables(this, true);

            this.Units         = new GameSlots();
            this.Units2        = new GameSlots();
            this.Spells        = new GameSlots();
            this.AllianceUnits = new GameSlots();

            this.HeroStates  = new GameSlots();
            this.HeroHealth  = new GameSlots();
            this.HeroUpgrade = new GameSlots();

            this.NpcProgress     = new GameSlots();
            this.NpcLootedGold   = new GameSlots();
            this.NpcLootedElixir = new GameSlots();

            this.UnitPreset1 = new GameSlots();
            this.UnitPreset2 = new GameSlots();
            this.UnitPreset3 = new GameSlots();

            this.PreviousArmy = new GameSlots();

            this.Missions = new Missions(this);

            this.UnitUpgrades  = new Upgrades(this);
            this.SpellUpgrades = new Upgrades(this);

            this.Achievements = new Achievements(this);
            this.Progress     = new Progress(this);

#if DEBUG
            this.Missions.Add(21000017);
            this.Missions.Add(21000018);
            this.Missions.Add(21000019);
            this.Missions.Add(21000020);
            this.Missions.Add(21000021);
            this.Missions.Add(21000022);
            this.Missions.Add(21000023);
            this.Missions.Add(21000024);
            this.Missions.Add(21000025);
#endif
        }
Beispiel #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Player"/> class.
        /// </summary>
        internal Player()
        {
            this.Info      = new PlayerInfo(this);
            this.Objects   = new Objects(this);
            this.Resources = new Resources(this);
            this.Deck      = new Deck(this);

            this.Facebook   = new Facebook(this);
            this.Google     = new Google(this);
            this.Gamecenter = new Gamecenter(this);
        }
Beispiel #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Player"/> class.
        /// </summary>
        internal Player()
        {
            this.Home           = new Home();
            this.CommoditySlots = new CommoditySlots();

            // Apis

            this.Google     = new Google(this);
            this.Facebook   = new Facebook(this);
            this.Gamecenter = new Gamecenter(this);

            this.Arena = (ArenaData)CSV.Tables.Get(Gamefile.Arena).Datas[1];
        }
Beispiel #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Player"/> class.
        /// </summary>
        internal Player()
        {
            this.AchievementsClaimed = new List <Data>(50);

            this.Resources             = new ResourceSlots();
            this.AchievementProgresses = new DataSlots();

            this.Facebook   = new Facebook(this);
            this.Google     = new Google(this);
            this.Gamecenter = new Gamecenter(this);

            this.Home = new Home(this);

            this.Initialize();
        }
Beispiel #7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Player"/> class.
        /// </summary>
        internal Player()
        {
            this.Time = new Time();

            this.EnergyTimer = new Timer(this.Time);

            this.Achievements = new List <int>(50);

            this.AchievementProgress = new DataSlots(this);
            this.ItemInventories     = new DataSlots(this);
            this.Resources           = new ResourceSlots(this);
            this.Spells           = new DataSlots(this);
            this.HeroLevels       = new HeroLevelSlots(this);
            this.NpcProgress      = new DataSlots(this);
            this.Variables        = new DataSlots(this);
            this.EnergyPackages   = new DataSlots(this, 2);
            this.HeroUnlockSeens  = new DataSlots(this);
            this.QuestUnlockSeens = new DataSlots(this);
            this.Extras           = new DataSlots(this);

            this.Facebook   = new Facebook(this);
            this.Google     = new Google(this);
            this.Gamecenter = new Gamecenter(this);

            this.HeroUpgrade = new HeroUpgrade(this);

            // Initialize.

            this.Diamonds         = GameSettings.StartingDiamonds;
            this.OngoingQuestData = GameSettings.StartingQuest.GlobalID;

            this.HeroLevels.Initialize();
            this.Resources.Initialize();

            // DEBUG

            this.Resources.Set(2000003, 1000);
            this.Resources.Set(2000004, 1000);
            this.Resources.Set(2000005, 1000);

            foreach (QuestData Data in CSV.Tables.Get(Gamefile.Quests).Datas)
            {
                if (Data.QuestType == "Unlock")
                {
                    this.NpcProgress.AddItem(Data.GlobalID, 1);
                }
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="Player"/> class.
        /// </summary>
        internal Player()
        {
            this.Objects    = new Objects(this);
            this.Facebook   = new Facebook(this);
            this.Google     = new Google(this);
            this.Gamecenter = new Gamecenter(this);

            this.Resources    = new Resources(this);
            this.ResourceCaps = new Caps(this);

            this.Variables = new Variables(this);

            this.Units  = new GameSlots();
            this.Units2 = new GameSlots();

            this.Spells        = new GameSlots();
            this.AllianceUnits = new GameSlots();

            this.HeroStates  = new GameSlots();
            this.HeroHealth  = new GameSlots();
            this.HeroUpgrade = new GameSlots();

            this.NpcProgress     = new GameSlots();
            this.NpcLootedGold   = new GameSlots();
            this.NpcLootedElixir = new GameSlots();

            this.UnitPreset1 = new GameSlots();
            this.UnitPreset2 = new GameSlots();
            this.UnitPreset3 = new GameSlots();

            this.PreviousArmy = new GameSlots();

            this.Missions = new Missions(this);

            this.UnitUpgrades  = new Upgrades(this);
            this.SpellUpgrades = new Upgrades(this);

            this.Achievements = new Achievements(this);
            this.Progress     = new Progress(this);
        }
Beispiel #9
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Player"/> class.
        /// </summary>
        internal Player()
        {
            this.Home = new Home(this, this.HighID, this.LowID);

            this.Units                        = new UnitList(this);
            this.NpcSeens                     = new DataSlots <Item>(this);
            this.Resources                    = new ResourceSlots(this);
            this.HeroSeens                    = new DataSlots <Item>(this);
            this.HeroStatus                   = new DataSlots <Item>(this);
            this.SectorBonuses                = new DataSlots <Item>(this);
            this.SpellUpgrades                = new DataSlots <Item>(this);
            this.UnitUpgrades                 = new DataSlots <Item>(this);
            this.TrapUpgrades                 = new DataSlots <Item>(this);
            this.SectorLevels                 = new DataSlots <Item>(this);
            this.ResourceCaps                 = new DataSlots <Item>(this);
            this.HeroUpgrades                 = new DataSlots <Item>(this);
            this.BuildingLevels               = new DataSlots <Item>(this);
            this.ArtifactBonuses              = new DataSlots <Item>(this);
            this.HeroAbilitySeens             = new DataSlots <Item>(this);
            this.SectorBoostLevels            = new DataSlots <Item>(this);
            this.LandingBoatLevels            = new DataSlots <Item>(this);
            this.SectorBonusFilter            = new DataSlots <Item>(this);
            this.HeroSelectedAbilities        = new DataSlots <Item>(this);
            this.AchievementProgresses        = new DataSlots <Item>(this);
            this.BottleChainProgresses        = new DataSlots <Item>(this);
            this.SubscriptionExpirationTimes  = new DataSlots <Item>(this);
            this.ResourcesConvertedToSupplies = new DataSlots <Item>(this);

            this.MissionCompleted   = new List <int>(64);
            this.AchievementClaimed = new List <int>(64);

            this.PlayerMap = new PlayerMap(this);

            this.Facebook   = new Facebook(this);
            this.Google     = new Google(this);
            this.Gamecenter = new Gamecenter(this);
        }