57 :
id(0), status(PENDING), time(0), delay(0), event(0), event_nparams(0),
58 event_chance(100), trigger(0), trigger_nparams(0), sound(0)
139 if (time <= sim->MissionClock())
176 double min_range = 0;
177 double max_range = 1e12;
184 if (range < min_range || range > max_range)
216 if (iff < 0 || ship->GetIFF() == iff)
229 for (
int i = 0; all && i < nparams; i++) {
235 if (e->
EventID() == trigger_id) {
241 else if (e->
EventID() == -trigger_id) {
257 for (
int i = 0; !any && i < nparams; i++) {
263 if (e->
EventID() == trigger_id) {
294 bool end_mission =
false;
405 Print(
" EVENT %d: Could not apply damage to ship '%s' (not found).\n",
id, (
const char*)
event_ship);
418 quantum_drive->
Engage(
true);
464 Print(
" ------------------------------------\n");
471 Print(
" ------------------------------------\n");
505 ::Print(
"Mission Event %d: setting camera target to %s\n",
id, (
const char*)
event_target);
539 if (!strncmp(body_name,
"body:", 5))
741 for (
int i = 0; i < 8; i++) {
795 static const char* event_names[] = {
814 static const char* trigger_names[] = {
835 return event_names[
event];
841 return event_names[n];
848 if (!_stricmp(n, event_names[i]))
863 return trigger_names[n];
870 if (!_stricmp(n, trigger_names[i]))