2005-04-19 19:53:18 +00:00
|
|
|
{
|
2005-06-08 10:14:52 +00:00
|
|
|
FLY_HOME = {
|
|
|
|
ATTACKED = (
|
|
|
|
setTargetToPrimaryAggressor,
|
|
|
|
broadcastDistressMessage,
|
|
|
|
"setStateTo: FLEE"
|
|
|
|
);
|
|
|
|
COURSE_OK = (
|
|
|
|
"setSpeedFactorTo: 1.0",
|
|
|
|
performFlyToRangeFromDestination
|
|
|
|
);
|
|
|
|
DESIRED_RANGE_ACHIEVED = (
|
|
|
|
landOnPlanet
|
|
|
|
);
|
|
|
|
ENTER = (
|
|
|
|
setCourseToPlanet,
|
|
|
|
checkCourseToDestination
|
|
|
|
);
|
|
|
|
EXIT = (
|
|
|
|
);
|
|
|
|
INCOMING_MISSILE = (
|
|
|
|
fightOrFleeMissile,
|
|
|
|
"setStateTo: FLEE"
|
|
|
|
);
|
|
|
|
UPDATE = (
|
|
|
|
checkCourseToDestination,
|
|
|
|
"pauseAI: 10.0"
|
|
|
|
);
|
|
|
|
WAYPOINT_SET = (
|
|
|
|
"setStateTo: GO_TO_WAYPOINT"
|
|
|
|
);
|
|
|
|
};
|
|
|
|
GLOBAL = {
|
|
|
|
ENTER = (
|
|
|
|
"setSpeedFactorTo: 0.25",
|
|
|
|
"setStateTo: FLY_HOME"
|
|
|
|
);
|
|
|
|
EXIT = (
|
|
|
|
);
|
|
|
|
UPDATE = (
|
|
|
|
);
|
|
|
|
};
|
|
|
|
GO_TO_WAYPOINT = {
|
|
|
|
ATTACKED = (
|
|
|
|
setTargetToPrimaryAggressor,
|
|
|
|
broadcastDistressMessage,
|
|
|
|
"setStateTo: FLEE"
|
|
|
|
);
|
|
|
|
COURSE_OK = (
|
|
|
|
"setSpeedFactorTo: 1.0",
|
|
|
|
performFlyToRangeFromDestination
|
|
|
|
);
|
|
|
|
DESIRED_RANGE_ACHIEVED = (
|
|
|
|
"setStateTo: GLOBAL"
|
|
|
|
);
|
|
|
|
ENTER = (
|
|
|
|
"setDesiredRangeTo: 50.0",
|
|
|
|
checkCourseToDestination
|
|
|
|
);
|
|
|
|
EXIT = (
|
|
|
|
);
|
|
|
|
INCOMING_MISSILE = (
|
|
|
|
fightOrFleeMissile,
|
|
|
|
"setStateTo: FLEE"
|
|
|
|
);
|
|
|
|
UPDATE = (
|
|
|
|
);
|
|
|
|
WAYPOINT_SET = (
|
|
|
|
"setDesiredRangeTo: 50.0",
|
|
|
|
checkCourseToDestination
|
|
|
|
);
|
|
|
|
};
|
2005-04-19 19:53:18 +00:00
|
|
|
}
|