ea0c50f8c1
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@610 127b21dd-08f5-0310-b4b7-95ae10353056
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
{
|
|
GLOBAL = {
|
|
ENTER = ("setSpeedTo: 0.0", "setStateTo: LIFT_OFF");
|
|
UPDATE = ();
|
|
EXIT = ();
|
|
};
|
|
"LIFT_OFF" = {
|
|
ENTER = (setTakeOffFromPlanet, "setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: GO_TO_STATION");
|
|
UPDATE = ();
|
|
EXIT = ();
|
|
};
|
|
"GO_TO_STATION" = {
|
|
ENTER = (setTargetToSystemStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget, checkCourseToDestination);
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
|
"COURSE_OK" = ("setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
|
|
"DESIRED_RANGE_ACHIEVED" = (setTargetToSystemStation, "setAITo: dockingAI.plist");
|
|
ATTACKED = (setTargetToPrimaryAggressor, broadcastDistressMessage, "setStateTo: FLEE");
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
UPDATE = (setTargetToSystemStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget, checkCourseToDestination);
|
|
EXIT = ();
|
|
};
|
|
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 = ();
|
|
};
|
|
} |