2005-04-19 19:53:18 +00:00
|
|
|
{
|
2006-06-23 16:10:55 +00:00
|
|
|
GLOBAL = {
|
|
|
|
ENTER = ("setSpeedTo: 0.0", "setStateTo: LIFT_OFF");
|
|
|
|
UPDATE = ();
|
2005-06-08 10:22:59 +00:00
|
|
|
EXIT = ();
|
2006-06-23 16:10:55 +00:00
|
|
|
};
|
|
|
|
"LIFT_OFF" = {
|
|
|
|
ENTER = (setTakeOffFromPlanet, "setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: GO_TO_STATION");
|
2005-06-08 10:22:59 +00:00
|
|
|
UPDATE = ();
|
2006-06-23 16:10:55 +00:00
|
|
|
EXIT = ();
|
2005-06-08 10:22:59 +00:00
|
|
|
};
|
2006-06-23 16:10:55 +00:00
|
|
|
"GO_TO_STATION" = {
|
2006-06-23 10:19:27 +00:00
|
|
|
ENTER = (setTargetToSystemStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget, checkCourseToDestination);
|
2006-06-23 16:10:55 +00:00
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
2005-06-08 10:22:59 +00:00
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
|
2006-06-23 10:19:27 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = (setTargetToSystemStation, "setAITo: dockingAI.plist");
|
2006-06-23 16:10:55 +00:00
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, broadcastDistressMessage, "setStateTo: FLEE");
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
|
|
UPDATE = (setTargetToSystemStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget, checkCourseToDestination);
|
2005-06-08 10:22:59 +00:00
|
|
|
EXIT = ();
|
|
|
|
};
|
2006-06-23 16:10:55 +00:00
|
|
|
FLEE = {
|
|
|
|
"TARGET_LOST" = (performIdle, "setStateTo: GLOBAL");
|
|
|
|
ENTER = ("setDesiredRangeTo: 25600", performFlee);
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
|
|
"REACHED_SAFETY" = ("setSpeedTo: 0.0", performIdle, "pauseAI: 30.0");
|
|
|
|
UPDATE = ();
|
|
|
|
EXIT = ();
|
2005-06-08 10:22:59 +00:00
|
|
|
};
|
2005-04-19 19:53:18 +00:00
|
|
|
}
|