Example #1
0
 public StatSet(Defense d, Offense o, Power p, Mobility m, Cargo c)
 {
     defense  = d;
     offense  = o;
     power    = p;
     mobility = m;
     cargo    = c;
 }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }