oolite/Resources/AIs/interceptAI.plist
Eric Walch 4f38b58b2d - Fixed a compiler warning in the last commit
- Added changes to interceptAI and policeInterceptAI

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3785 127b21dd-08f5-0310-b4b7-95ae10353056
2010-10-29 09:57:58 +00:00

25 lines
886 B
Plaintext

{
GLOBAL =
{
ENTER = (switchLightsOn, "setStateTo: ATTACK_SHIP");
};
"ATTACK_SHIP" =
{
ENTER = (performAttack);
"ENERGY_LOW" = ("setStateTo: FLEE");
ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
"ESCORT_ATTACKED" = (setTargetToPrimaryAggressor, groupAttackTarget);
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
"TARGET_DESTROYED" = (performIdle, switchLightsOff, exitAI);
"TARGET_LOST" = (performIdle, switchLightsOff, exitAI);
};
FLEE =
{
ENTER = (deployEscorts, "setDesiredRangeTo: 25600", performFlee);
"ENERGY_FULL" = ("setStateTo: ATTACK_SHIP");
"TARGET_LOST" = (performIdle, switchLightsOff, exitAI);
"TARGET_DESTROYED" = (performIdle, switchLightsOff, exitAI);
"REACHED_SAFETY" = (performIdle, switchLightsOff, exitAI);
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
};
}