Пример #1
0
        private void GetAllSoldierProducer()
        {
            MySQLManager <SoldiersProducer> mySQLSPManager      = new MySQLManager <SoldiersProducer>();
            List <SoldiersProducer>         allSoldierProducers = mySQLSPManager.GetAll();
            SoldierProducerMySQLManager     SPMySQLM            = new SoldierProducerMySQLManager();

            foreach (SoldiersProducer sp in allSoldierProducers)
            {
                MainCastle.SoldiersProducers.Add(sp.Name, sp);
                SPMySQLM.SetSoldiers(sp);
            }
        }
Пример #2
0
        private void GetAllGoldProducer()
        {
            MySQLManager <RessourceProducer> mySQLRPManager   = new MySQLManager <RessourceProducer>();
            List <RessourceProducer>         allGoldProducers = mySQLRPManager.GetAll();
            int goldNumber = 0;

            foreach (RessourceProducer RessourceProducer in allGoldProducers)
            {
                this.MainCastle.GoldProducers.Add(RessourceProducer);
                goldNumber++;
            }
        }
Пример #3
0
        private void getAllHero()
        {
            MySQLManager <Hero> mySQLHeroManager = new MySQLManager <Hero>();

            MainCastle.Heroes = mySQLHeroManager.GetAll();
            MySQLHero mySQLHero = new MySQLHero();

            foreach (Hero hero in MainCastle.Heroes)
            {
                mySQLHero.GetSkills(hero);
            }
        }