/// <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(); }
public FormResources(Village.Store store, Village.Resources resources) { this.store = store; this.resources = resources; InitializeComponent(); SetValues(); Show(); }
/// <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(); }