Esempio n. 1
0
        public bool IsInvented(Invention type)
        {
            bool result = false;

            inventions.TryGetValue(type, out result);
            return(result);
        }
Esempio n. 2
0
 public void Invent(Invention type)
 {
     inventions[type] = true;
     Points          -= type.Cost.get();
     if (Points < 0f)
     {
         Points = 0f;
     }
 }
 public void selectInvention(Invention newSelection)
 {
     selectedInvention = newSelection;
 }
Esempio n. 4
0
 public InventionEventArgs(Invention invention) : base(UIEvents.ClickTypes.Inventions)
 {
     this.Invention = invention;
 }