Esempio n. 1
0
        public static Offense operator *(Offense a, float b)
        {
            Offense c = new Offense();

            c.gaussDamage   = a.gaussDamage * b;
            c.laserDamage   = a.laserDamage * b;
            c.missileDamage = a.missileDamage * b;
            return(c);
        }
Esempio n. 2
0
        public static Offense operator /(Offense a, Offense b)
        {
            Offense c = new Offense();

            c.gaussDamage   = a.gaussDamage / b.gaussDamage;
            c.laserDamage   = a.laserDamage / b.laserDamage;
            c.missileDamage = a.missileDamage / b.missileDamage;
            return(c);
        }