2005-04-19 19:53:18 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
|
|
|
ENTER = (switchLightsOn, "setStateTo: ATTACK_SHIP");
|
|
|
|
};
|
|
|
|
"ATTACK_SHIP" =
|
|
|
|
{
|
|
|
|
ENTER = (performAttack);
|
|
|
|
"ENERGY_LOW" = ("setStateTo: FLEE");
|
2010-10-29 09:57:58 +00:00
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
2009-09-25 14:50:28 +00:00
|
|
|
"ESCORT_ATTACKED" = (setTargetToPrimaryAggressor, groupAttackTarget);
|
2008-08-03 15:44:57 +00:00
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
2009-07-08 16:20:10 +00:00
|
|
|
"TARGET_DESTROYED" = (performIdle, switchLightsOff, exitAI);
|
|
|
|
"TARGET_LOST" = (performIdle, switchLightsOff, exitAI);
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
|
|
|
FLEE =
|
|
|
|
{
|
2009-07-08 16:20:10 +00:00
|
|
|
ENTER = (deployEscorts, "setDesiredRangeTo: 25600", performFlee);
|
2008-08-03 15:44:57 +00:00
|
|
|
"ENERGY_FULL" = ("setStateTo: ATTACK_SHIP");
|
2009-07-08 16:20:10 +00:00
|
|
|
"TARGET_LOST" = (performIdle, switchLightsOff, exitAI);
|
|
|
|
"TARGET_DESTROYED" = (performIdle, switchLightsOff, exitAI);
|
2010-10-02 15:27:06 +00:00
|
|
|
"REACHED_SAFETY" = (performIdle, switchLightsOff, exitAI);
|
2008-08-03 15:44:57 +00:00
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
|
|
};
|
2009-07-08 16:20:10 +00:00
|
|
|
}
|