Пример #1
0
 public StatSet(Defense d, Offense o, Power p, Mobility m, Cargo c)
 {
     defense  = d;
     offense  = o;
     power    = p;
     mobility = m;
     cargo    = c;
 }
Пример #2
0
        public static Mobility operator /(Mobility a, float b)
        {
            Mobility c = new Mobility();

            c.mass   = a.mass / b;
            c.thrust = a.thrust / b;
            c.torque = a.torque / b;
            c.warp   = a.warp / b;
            return(c);
        }
Пример #3
0
        public static Mobility operator *(Mobility a, float b)
        {
            Mobility c = new Mobility();

            c.mass   = a.mass * b;
            c.thrust = a.thrust * b;
            c.torque = a.torque * b;
            c.warp   = a.warp * b;
            return(c);
        }
Пример #4
0
        public static Mobility operator -(Mobility a, float b)
        {
            Mobility c = new Mobility();

            c.mass   = a.mass - b;
            c.thrust = a.thrust - b;
            c.torque = a.torque - b;
            c.warp   = a.warp - b;
            return(c);
        }
Пример #5
0
        public static Mobility operator +(Mobility a, float b)
        {
            Mobility c = new Mobility();

            c.mass   = a.mass + b;
            c.thrust = a.thrust + b;
            c.torque = a.torque + b;
            c.warp   = a.warp + b;
            return(c);
        }
Пример #6
0
        public static Mobility operator /(Mobility a, Mobility b)
        {
            Mobility c = new Mobility();

            c.mass   = a.mass / b.mass;
            c.thrust = a.thrust / b.thrust;
            c.torque = a.torque / b.torque;
            c.warp   = a.warp / b.warp;
            return(c);
        }