Lines Matching defs:cost
79 ** warpcost -- Gives you the cost in time and units to move for
117 int cost;
228 cost = pow(0.90, dist) * 98.0 + 0.5;
230 cost);
233 case 6: /* warp cost (time/energy) */
240 cost = (dist + 0.05) * warpfact * warpfact * warpfact;
242 printf("Warp %.2f distance %.2f cost %.2f "
244 warpfact, dist, time, cost, cost + cost);
247 case 7: /* impulse cost */
251 cost = 20 + 100 * dist;
253 printf("Distance %.2f cost %.2f stardates %d units\n",
254 dist, time, cost);