56 :
FormWindow(s, 0, 0, s->Width(), s->Height()), manager(mgr),
57 ship(0), route_source(0), selected_source(0),
58 selected_repair(0), selected_component(0)
72 for (
int i = 0; i < 4; i++) {
180 for (
int i = 0; i < 4; i++) {
222 for (
int i = 0; i < 4; i++)
235 for (
int i = 0; i < 4; i++) {
248 int reactor_index = 0;
251 while (++reactor_iter) {
266 char abrv[64], num[20];
304 for (
int source_index = 0; source_index < nsources; source_index++) {
331 for (
int i = 0; i < client_list->
NumItems(); i++) {
342 switch (client->
Status()) {
364 override->SetEnabled(
true);
431 override->SetEnabled(
true);
437 if (sink->
Safety() < 100) {
498 override->SetEnabled(
true);
504 if (sink->
Safety() < 100) {
536 override->SetEnabled(
false);
537 override->SetButtonState(0);
555 double time_remaining = 0;
582 double time_remaining = 0;
626 int source_index = -1;
628 for (
int i = 0; i < 4; i++)
633 if (source_index >= 0) {
637 for (
int i = 0; i < 4; i++) {
667 int source_index = -1;
669 for (
int i = 0; i < 4; i++) {
677 if (source_index >= 0) {
684 if (
clients[source_index]->IsSelected(i)) {
719 int source_index = -1;
721 for (
int i = 0; i < 4; i++)
726 if (source_index >= 0) {
734 if (
clients[source_index]->IsSelected(i)) {
751 for (
int i = 0; i < 4; i++)
756 if (dest_index >= 0) {
782 override->SetButtonState(0);
792 override->SetButtonState(0);
804 override->SetButtonState(0);
814 override->SetButtonState(0);
849 else if (level > 100)
862 override->SetButtonState(0);
878 int component_index = -1;
887 if (component_index >= 0) {