28 static int id_key = 1000;
31 : id(id_key++), name(call_sign), type(a_type), iff(a_iff),
32 player(0), command_ai(1), commander(0), assignment(0), carrier(0),
33 combat_group(0), combat_unit(0), launch_time(0), hold_time(0),
34 zone_lock(0), respawns(0), count(0), rogue(false), playable(true), intel(0)
38 sprintf_s(buf,
"Pkg %d",
id);
52 ships[i]->SetElement(0);
75 if (respawns < ship->RespawnCount())
98 return ships[index-1];
107 return ships[0]->Class();
129 for (
int i = 0; i <
ships.
size() && !active; i++) {
141 bool finished =
false;
147 for (
int i = 0; i <
ships.
size() && finished; i++) {
165 for (
int i = 0; i <
ships.
size() && observer; i++) {
210 if (s_iff <= 0 || s_iff >= 100 || s_iff ==
iff)
228 if (iff_code <= 0 || iff_code >= 100 || iff_code ==
iff)
248 if (o_name && *o_name)
249 o_len = strlen(o_name);
254 if (!strncmp(e_name, o_name, o_len))
267 if (o_name && *o_name)
268 o_len = strlen(o_name);
273 if (!strncmp(e_name, o_name, o_len))
323 for (
int i = 0; i < 16; i++)
334 if (obj->
Life() != 0) {
335 ::Print(
"Element (%s) false update on (%s) life = %f\n",
Name().data(), obj->
Name(), obj->
Life());
351 return (
const char*) (
Text(
"Element ") +
Name());
447 if (navpt.
value() == n)
570 switch (instr->
Action()) {
609 int reported =
false;
619 else if (!reported) {