예제 #1
0
 private void NewGame()
 {
     TimeLogic.NewGame();
     TerrainLogic.NewGame();
     CharacterLogic.NewGame();
     PlantLogic.NewGame();
 }
예제 #2
0
        public static SelectList ListaDeTimes()
        {
            var timeLogic = new TimeLogic();

            var times = timeLogic.List();

            return(new SelectList(times, "TimeId", "Nome"));
        }
예제 #3
0
 void Awake()
 {
     TimeLogic.SetTime(1, 0, 0);
     TerrainLogic.Clear();
     TerrainLogic.ReadMap();
     CharacterLogic.Clear();
     CharacterLogic.ReadFamilyTree();
 }
예제 #4
0
 /*  InvalidateRequerySuggested tvingar kommandohanteraren
  * att prioritera händelse . */
 private void automationTimer_Tick(object sender, EventArgs e)
 {
     if (mainCollection != null && mainCollection.Count > 0)
     {
         mainCollection = TimeLogic.IntervalHandler(mainCollection);
         CommandManager.InvalidateRequerySuggested();
         UpdateFeedItemList();
     }
 }
예제 #5
0
        private void TransferUserFeedInfo()
        {
            string[] feedStore = new string[4];

            String newUrl           = txtUrl.Text;
            String feedName         = txtFeedName.Text;
            var    catSelect        = cbCategory.SelectionBoxItem;
            String selectedCategory = catSelect.ToString();
            string interval         = TimeLogic.SetInterval(cbInterval.Text);

            feedStore[0] = newUrl;
            feedStore[1] = feedName;
            feedStore[2] = selectedCategory;
            feedStore[3] = interval;

            TransferInterface.UrlToDataHandler(feedStore);
            TransferInterface.InformationHandler(feedStore);

            CreateUserFeed(newUrl, feedName);
        }
예제 #6
0
 public TimesController()
 {
     logic = new TimeLogic();
 }
예제 #7
0
 public void EndTurn()
 {
     ClearSelection();
     TimeLogic.NextTurn();
     sun.SendMessage("Revolve");
 }