4ca8806312
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1724 127b21dd-08f5-0310-b4b7-95ae10353056
23 lines
601 B
Plaintext
23 lines
601 B
Plaintext
{
|
|
GLOBAL =
|
|
{
|
|
ENTER = (switchLightsOn, "setStateTo: ATTACK_SHIP");
|
|
};
|
|
"ATTACK_SHIP" =
|
|
{
|
|
ENTER = (performAttack);
|
|
"ENERGY_LOW" = ("setStateTo: FLEE");
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
"TARGET_DESTROYED" = (switchLightsOff, exitAI);
|
|
"TARGET_LOST" = (switchLightsOff, exitAI);
|
|
};
|
|
FLEE =
|
|
{
|
|
ENTER = ("setDesiredRangeTo: 25600", performFlee);
|
|
"ENERGY_FULL" = ("setStateTo: ATTACK_SHIP");
|
|
"TARGET_LOST" = (switchLightsOff, exitAI);
|
|
"TARGET_DESTROYED" = (switchLightsOff, exitAI);
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
};
|
|
}
|