2005-04-19 19:53:18 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
|
|
|
ENTER = ("setStateTo: NEXT_COORDS");
|
|
|
|
};
|
|
|
|
"NEXT_COORDS" =
|
|
|
|
{
|
|
|
|
"APPROACH_COORDINATES" = ("setStateTo: GO_TO_COORDS");
|
|
|
|
UPDATE = (setPlanetPatrolCoordinates);
|
|
|
|
};
|
|
|
|
"GO_TO_COORDS" =
|
|
|
|
{
|
|
|
|
ENTER =
|
|
|
|
(
|
|
|
|
patrolReportIn,
|
2005-06-08 10:22:59 +00:00
|
|
|
"setSpeedFactorTo: 0.0",
|
2008-08-03 15:44:57 +00:00
|
|
|
setDestinationFromCoordinates,
|
2005-06-08 10:22:59 +00:00
|
|
|
checkCourseToDestination
|
2008-08-03 15:44:57 +00:00
|
|
|
);
|
2006-06-23 16:10:55 +00:00
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
2005-06-08 10:22:59 +00:00
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 0.5", performFlyToRangeFromDestination);
|
2009-08-01 11:56:30 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: NEXT_COORDS", "pauseAI: 0.0");
|
|
|
|
"FRUSTRATED" = ("setStateTo: NEXT_COORDS");
|
2008-08-03 15:44:57 +00:00
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, checkTargetLegalStatus);
|
|
|
|
"TARGET_MINOR_OFFENDER" = (markTargetForFines);
|
|
|
|
"TARGET_MARKED" = ("sendTargetCommsMessage: [police-warning]");
|
|
|
|
"TARGET_OFFENDER" = ("sendTargetCommsMessage: [police-attack-warning]", "setAITo: interceptAI.plist");
|
|
|
|
"TARGET_FUGITIVE" = ("setAITo: interceptAI.plist");
|
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, "setAITo: interceptAI.plist");
|
2009-07-08 16:20:10 +00:00
|
|
|
"INCOMING_MISSILE" = (setTargetToFoundTarget, "markTargetForOffence: 15",
|
|
|
|
"setAITo: delayedReactToAttackAI.plist");
|
|
|
|
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7",
|
|
|
|
"sendTargetCommsMessage: [police-attack-warning]", "setAITo: interceptAI.plist");
|
2008-08-03 15:44:57 +00:00
|
|
|
UPDATE = (setDestinationFromCoordinates, checkCourseToDestination, scanForOffenders, "pauseAI: 7.5");
|
|
|
|
};
|
2009-11-12 16:23:01 +00:00
|
|
|
}
|