Home
last modified time | relevance | path

Searched refs:numof_substations (Results 1 – 14 of 14) sorted by relevance

/dports/games/lincity/lincity-1.13.1/modules/
H A Dsubstation.c50 if (numof_substations >= MAX_NUMOF_SUBSTATIONS) in add_a_substation()
52 substationx[numof_substations] = x; in add_a_substation()
53 substationy[numof_substations] = y; in add_a_substation()
54 numof_substations++; in add_a_substation()
62 for (q = 0; q < numof_substations; q++) in remove_a_substation()
65 for (; q < numof_substations; q++) in remove_a_substation()
70 numof_substations--; in remove_a_substation()
77 m = (numof_substations / 2) + 1; in shuffle_substations()
80 r = rand () % numof_substations; in shuffle_substations()
/dports/games/lincity-ng/lincity-ng-2.0/src/lincity/modules/
H A Dsubstation.cpp50 if (numof_substations >= MAX_NUMOF_SUBSTATIONS) in add_a_substation()
52 substationx[numof_substations] = x; in add_a_substation()
53 substationy[numof_substations] = y; in add_a_substation()
54 numof_substations++; in add_a_substation()
61 for (q = 0; q < numof_substations; q++) in remove_a_substation()
64 for (; q < numof_substations; q++) { in remove_a_substation()
68 numof_substations--; in remove_a_substation()
74 m = (numof_substations / 2) + 1; in shuffle_substations()
76 r = rand() % numof_substations; in shuffle_substations()
/dports/games/lincity/lincity-1.13.1/
H A Dpower.c62 for (gi = 0; gi < numof_substations; gi++) in power_time_step()
351 if (numof_substations == 0) in get_power()
354 for (i = 0; i < numof_substations; i++) in get_power()
H A Dshrglobs.c60 int numof_substations = 0; variable
H A Dengglobs.h52 extern int numof_substations;
H A Dldsvguts.c194 fprintf (ofile, "%d\n", numof_substations); in save_city_raw()
456 fscanf (ofile, "%d", &numof_substations); in load_city()
H A Dsimulate.c428 numof_substations = 0; in clear_game()
/dports/games/lincity-ng/lincity-ng-2.0/src/lincity/
H A Dpower.cpp70 for (gi = 0; gi < numof_substations; gi++) in power_time_step()
334 if (numof_substations == 0) in get_power()
337 for (i = 0; i < numof_substations; i++) { in get_power()
H A Dengglobs.h42 extern int numof_substations;
H A Dengglobs.cpp48 int numof_substations = 0; variable
H A Dloadsave.cpp186 gzprintf(ofile, "%d\n", numof_substations); in save_city_2()
372 sscanf(gzgets(gzfile, s, 256), "%d", &numof_substations); in load_city_2()
H A Dold_ldsvguts.cpp242 sscanf(gzgets(gzfile, s, 256), "%d", &numof_substations); in load_city_old()
H A Dengine.cpp224 if (numof_substations >= MAX_NUMOF_SUBSTATIONS) { in is_allowed_here()
H A Dinit_game.cpp75 numof_substations = 0; in clear_game()