Ejemplo n.º 1
0
        /// <summary>
        /// Generates a new Shield
        /// </summary>
        /// <returns>Returns the Shield generated</returns>
        public Shield GenerateShield()
        {
            Shield shield = new Shield(vm.ShieldResearch);

            return(shield);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Replaces the currently active shield with a new one.
 /// </summary>
 /// <param name="newShield">The shield which should be placed on the building</param>
 public void ActivateShield(Shield newShield)
 {
     shield = newShield;
 }