* Return the residential, commercial and industrial * development demands, as floating point numbers * from -1 (lowest demand) to 1 (highest demand). */
| 414 | * from -1 (lowest demand) to 1 (highest demand). |
| 415 | */ |
| 416 | void Micropolis::getDemands( |
| 417 | float *resDemandResult, |
| 418 | float *comDemandResult, |
| 419 | float *indDemandResult) |
| 420 | { |
| 421 | *resDemandResult = (float)resValve / (float)RES_VALVE_RANGE; |
| 422 | *comDemandResult = (float)comValve / (float)COM_VALVE_RANGE; |
| 423 | *indDemandResult = (float)indValve / (float)IND_VALVE_RANGE; |
| 424 | } |
| 425 | |
| 426 | |
| 427 | //////////////////////////////////////////////////////////////////////// |
no outgoing calls
no test coverage detected