QUAD LastFunds;
QUAD LastR, LastC, LastI;
+void UpdateOptionsMenu(int options);
+void updateOptions(void);
+void SetDemand(double r, double c, double i);
+void drawValve(void);
+void showValves(void);
+void updateDate(void);
+void ReallyUpdateFunds(void);
+
char *dateStr[12] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
-void DoUpdateHeads()
+void DoUpdateHeads(void)
{
showValves();
doTimeStuff();
}
-void UpdateEditors()
+void UpdateEditors(void)
{
InvalidateEditors();
DoUpdateHeads();
}
-void UpdateMaps()
+void UpdateMaps(void)
{
InvalidateMaps();
}
-void UpdateGraphs()
+void UpdateGraphs(void)
{
ChangeCensus();
}
-void UpdateEvaluation()
+void UpdateEvaluation(void)
{
ChangeEval();
}
-void UpdateHeads()
+void UpdateHeads(void)
{
MustUpdateFunds = ValveFlag = 1;
LastCityTime = LastCityYear = LastCityMonth = LastFunds = LastR = -999999;
DoUpdateHeads();
}
+void
UpdateFunds(void)
{
MustUpdateFunds = 1;
}
+void
ReallyUpdateFunds(void)
{
char localStr[256], dollarStr[256], buf[256];
if (TotalFunds != LastFunds) {
LastFunds = TotalFunds;
- sprintf(localStr, "%d", TotalFunds);
+ sprintf(localStr, "%ld", TotalFunds);
makeDollarDecimalStr(localStr, dollarStr);
sprintf(localStr, "Funds: %s", dollarStr);
}
-doTimeStuff(void)
+void
+doTimeStuff(void)
{
// if ((CityTime >> 2) != LastCityTime) {
updateDate();
}
+void
updateDate(void)
{
int y;
}
+void
showValves(void)
{
if (ValveFlag) {
}
+void
drawValve(void)
{
double r, c, i;
}
+void
SetDemand(double r, double c, double i)
{
char buf[256];
}
-updateOptions()
+void
+updateOptions(void)
{
int options;
}
+void
UpdateOptionsMenu(int options)
{
char buf[256];