13cd03aac2
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2255 127b21dd-08f5-0310-b4b7-95ae10353056
27 lines
998 B
Plaintext
27 lines
998 B
Plaintext
{
|
|
GLOBAL =
|
|
{
|
|
ENTER = ("setStateTo: NEW_WAYPOINT");
|
|
};
|
|
"GO_TO_WAYPOINT" =
|
|
{
|
|
ENTER = ("setSpeedFactorTo: 0.75");
|
|
"WAYPOINT_SET" = ("setStateTo: NEW_WAYPOINT");
|
|
"DESIRED_RANGE_ACHIEVED" = ("setDesiredRangeTo: 1000.0", exitAI);
|
|
ATTACKED = ("exitAIWithMessage: ATTACKED");
|
|
"FRUSTRATED" = ("setSpeedFactorTo: 0.1", "setDesiredRangeTo: 1000.0", exitAI);
|
|
"INCOMING_MISSILE" = ("exitAIWithMessage: INCOMING_MISSILE");
|
|
UPDATE = (performFlyToRangeFromDestination,
|
|
checkCourseToDestination, "pauseAI: 2.0");
|
|
};
|
|
"NEW_WAYPOINT" =
|
|
{
|
|
ENTER = ("setSpeedFactorTo: 0.0", "setDesiredRangeTo: 50.0", checkCourseToDestination);
|
|
"WAYPOINT_SET" = ("setStateTo: NEW_WAYPOINT");
|
|
"COURSE_OK" = ("setStateTo: GO_TO_WAYPOINT");
|
|
"FRUSTRATED" = ("setSpeedFactorTo: 0.1", "setDesiredRangeTo: 1000.0", exitAI);
|
|
ATTACKED = ("exitAIWithMessage: ATTACKED");
|
|
"DESIRED_RANGE_ACHIEVED" = ("setDesiredRangeTo: 1000.0", exitAI);
|
|
"INCOMING_MISSILE" = ("exitAIWithMessage: INCOMING_MISSILE");
|
|
};
|
|
} |