Пример #1
0
 /// <summary>
 /// Konstruktor z przekazywanym Store
 /// </summary>
 /// <param name="store"></param>
 public FormBarracks(Village.Store store)
 {
     this.store = store;
     InitializeComponent();
     // wyświetla maksymalną możliwą ilość do zrekrutowania
     labelSoldiersNumber.Text = store.RecruitableSoldiers().ToString();
     Show();
 }
Пример #2
0
 public FormResources(Village.Store store, Village.Resources resources)
 {
     this.store     = store;
     this.resources = resources;
     InitializeComponent();
     SetValues();
     Show();
 }
Пример #3
0
        /// <summary>
        /// Konstruktor
        /// </summary>
        public FormMain()
        {
            InitializeComponent();
            store        = new Village.Store();
            villageEvent = new Village.Event();
            villageWar   = new Village.EventWar();
            formMap      = new FormMap(store.SoldierUnits, villageWar);

            //Startuje zegary
            timerGameTime.Start();
            timerFPS.Start();

            //Włącza muzykę
            player = new SoundPlayer(Properties.Resources.VillageMusic);
            player.PlayLooping();
        }