56 :
FormWindow(s, 0, 0, s->Width(), s->Height()), manager(mgr),
58 cmb_forces(0), lst_combat(0), lst_desc(0),
59 stars(0), campaign(0), current_group(0), current_unit(0),
90 for (
int i = 0; i < 5; i++) {
134 if (combatants.
size() > 0) {
135 for (
int i = 0; i < combatants.
size(); i++) {
160 for (
int i = 0; i < groups.
size(); i++) {
177 static char pipe_stack[32];
178 static bool blank_line =
false;
186 ZeroMemory(pipe_stack, 32);
192 for (
int i = 0; i < groups.
size(); i++) {
245 int stacklen = strlen(pipe_stack);
253 pipe_stack[stacklen] = 0;
262 while (++unit_iter) {
267 if (damage < 1 || unit->DeadCount() >= unit->
Count()) {
268 sprintf_s(info,
"%s%s%s", pipe_stack, prefix, unit->
GetDescription());
270 sprintf_s(info,
"%s%s%s %d%% damage", pipe_stack, prefix, unit->
GetDescription(), damage);
286 for (
int i = 0; i < groups.
size(); i++) {
297 pipe_stack[stacklen-1] = 0;
315 if (name == c->
Name()) {
339 while (!group && w < 8) {
340 if (first < 0 && iter->name.length() == 0)
343 if (!_stricmp(iter->
name, name))
350 if (!group && first >= 0) {
351 group = weapons + first;
361 static int old_index = -1;
385 if (nplus >= 0 && nplus < 64) {
387 strncpy(pipe, item.
data(), nplus+1);
401 if (dx >= 0 && dx < 16) {
402 if (data && type == 0) {
440 sprintf_s(txt,
"%d", grp->
Sorties());
442 strcpy_s(txt,
"Unavail");
448 if (grp->
Kills() >= 0)
449 sprintf_s(txt,
"%d", grp->
Kills());
451 strcpy_s(txt,
"Unavail");
459 sprintf_s(txt,
"%.1f", (
double) grp->
Points() / grp->
Sorties());
461 sprintf_s(txt,
"%.1f", (
double) grp->
Points());
463 strcpy_s(txt,
"Unavail");
538 for (
int g = 0; g < 8; g++) {
540 if (group && group->
count) {
558 for (
int i = 0; i < combatants.
size(); i++) {
561 if (name == c->
Name()) {
668 char transfer_info[512];
674 sprintf_s(transfer_info,
"Your transfer request has been approved, %s %s. You are now assigned to the %s. Good luck.\n\nFleet Admiral A. Evars FORCOM\nCommanding",
682 sprintf_s(transfer_info,
"Your transfer request has been approved, %s %s. You are now assigned to the %s. Good luck.\n\nFleet Admiral A. Evars FORCOM\nCommanding",
701 sprintf_s(transfer_info,
"Your transfer request has been denied, %s %s. The %s requires a command rank of %s. Please return to your unit and your duties.\n\nFleet Admiral A. Evars FORCOM\nCommanding",
709 msgdlg->Message()->SetText(transfer_info);
710 msgdlg->Message()->SetTextAlign(DT_LEFT);