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